Skip to content

Commit 13492f1

Browse files
committed
change permissions scope
1 parent e6d622b commit 13492f1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ on:
66
- main # Set a branch to deploy
77
pull_request:
88

9-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
14-
159
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1610
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1711
concurrency:
@@ -22,6 +16,11 @@ jobs:
2216
# Build job
2317
build:
2418
runs-on: ubuntu-latest
19+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
2524
steps:
2625
- uses: actions/checkout@v4
2726
with:
@@ -48,6 +47,11 @@ jobs:
4847
name: github-pages
4948
url: ${{ steps.deployment.outputs.page_url }}
5049
runs-on: ubuntu-latest
50+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
51+
permissions:
52+
contents: read
53+
pages: write
54+
id-token: write
5155
needs: build
5256
steps:
5357
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)