Skip to content

Commit

Permalink
Update permission to write commit statuses.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 8, 2024
1 parent 3111ee4 commit 32b2d9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
branches:
- 'main'
# WARNING: This allows storybook-branch-switcher CLI to run `npm run ${arbitrary_script}`
# BUT the worst it can do is force changes to our GitHub Pages website,
# BUT the worst it can do is:
# - force changes to our GitHub Pages website,
# - force commit status updates,
# unless the permissions key below is changed.
pull_request_target:
types: [opened, synchronize, reopened]
Expand All @@ -15,6 +17,7 @@ permissions:
contents: read
pages: write
id-token: write
statuses: write

jobs:
deploy:
Expand Down

0 comments on commit 32b2d9e

Please sign in to comment.