-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add write-all to storybook permissions #4316
Conversation
The previous setup failed on the push to master, as it only had write permissions on pull-requests
Storybook staging is available at https://kiwicom-orbit-ci-write-all-storybook.surge.sh |
Size Change: +2 B (0%) Total Size: 443 kB
ℹ️ View Unchanged
|
Deploying orbit with Cloudflare Pages
|
Merging to allow unblocking of pipelines on master |
@@ -16,8 +16,7 @@ env: # Set environment variables for every job and step in this workflow | |||
jobs: | |||
deploy: | |||
runs-on: ubuntu-latest | |||
permissions: | |||
pull-requests: write # for dependabot | |||
permissions: write-all # for dependabot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would just adding pages: write
be enough then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 valid question. So you'd recommend pull-requests
and pages
, right? We can try it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'd prefer the least privilege approach :)
Following the merge of #4311 all master deploys of storybook were failing because one could not push to GH Pages, as the permissions only had write permissions on pull requests. This should bring those permissions back without affecting the dependabot