Skip to content

Commit 424d4a4

Browse files
committed
Set permissions on the job level
We're getting a permissions error when running the deploy job: > Ensure GITHUB_TOKEN has permission "id-token: write". This is an attempt at fixing this.
1 parent 6d321d2 commit 424d4a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/parklife.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
concurrency:
5353
group: deploy
5454
cancel-in-progress: true
55+
56+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
57+
permissions:
58+
pages: write # to deploy to Pages
59+
id-token: write # to verify the deployment originates from an appropriate source
60+
5561
steps:
5662
- name: Deploy to GitHub Pages
5763
id: deployment

0 commit comments

Comments
 (0)