Skip to content

Commit babf0d4

Browse files
authored
Ensure GITHUB_TOKEN has write permissions (#14)
After PR #13 the deploy step of our workflows did not have the necessary permissions to upload our website to GitHub Pages. This change fixes it.
1 parent b45beb5 commit babf0d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-deploy-book.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ jobs:
8888
environment:
8989
name: github-pages
9090
url: ${{ steps.deployment.outputs.page_url }}
91+
92+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
93+
permissions:
94+
pages: write # to deploy to Pages
95+
id-token: write # to verify the deployment originates from an appropriate source
96+
9197
steps:
9298
- name: Deploy to GitHub Pages
9399
id: deployment

0 commit comments

Comments
 (0)