Skip to content

Commit d900227

Browse files
committed
fix: permissions scope for GitHub Pages deployment
1 parent 335e114 commit d900227

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/jekyll.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ on:
1414
# Allows you to run this workflow manually from the Actions tab
1515
workflow_dispatch:
1616

17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18-
permissions:
19-
contents: read
20-
pages: write
21-
id-token: write
22-
2317
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2418
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2519
concurrency:
@@ -30,6 +24,11 @@ jobs:
3024
# Build job
3125
build:
3226
runs-on: ubuntu-latest
27+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
28+
permissions:
29+
contents: read
30+
pages: write
31+
id-token: write
3332
steps:
3433
- name: Checkout
3534
uses: actions/checkout@v4
@@ -59,6 +58,11 @@ jobs:
5958
url: ${{ steps.deployment.outputs.page_url }}
6059
runs-on: ubuntu-latest
6160
needs: build
61+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
62+
permissions:
63+
contents: read
64+
pages: write
65+
id-token: write
6266
steps:
6367
- name: Deploy to GitHub Pages
6468
id: deployment

0 commit comments

Comments
 (0)