Skip to content

Commit 89771f1

Browse files
committed
move the required permissions for gh-pages deployment to the deploy step
1 parent b97aa6d commit 89771f1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ concurrency:
1313

1414
permissions:
1515
contents: read
16-
pages: write
17-
id-token: write
1816

1917
jobs:
2018

@@ -123,6 +121,12 @@ jobs:
123121
needs: build
124122
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
125123

124+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
125+
permissions:
126+
contents: read
127+
pages: write # to deploy to Pages
128+
id-token: write # to verify the deployment originates from an appropriate source
129+
126130
runs-on: ubuntu-latest
127131

128132
environment:

0 commit comments

Comments
 (0)