Skip to content
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

workflows: fix and cleanup permissions #3797

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

IvanGoncharov
Copy link
Member

@IvanGoncharov IvanGoncharov commented Dec 11, 2022

Context: #3751 added permissions to workflows.
It broke some of the workflows and was partially fixed in #3759
This PR attempt to fix the rest of the workflows and also clean up permissions in general.
Assigning granular permissions is error-prone, especially if we need to account for top-level workflow permissions.
This PR attempt to solve this by explicitly listing permissions on each individual job.
It slightly increases verbosity for some workflows but is more maintainable by keeping permissions closer to the required steps.

Context: graphql#3751 added permissions to workflows.
It broke some of the workflows and was partially fixed in 3759
This PR attempt to fix rest of workflows and also cleanup permissions in general.
Assignining granular permissions is error-prone especially if we need to account of top-level workflow's permissions.
This PR attempt to solve this by explicitly listing permissions on each individual job.
It slightly increase verbosity for some workflows but is more maintanable by keeping permissions closer to steps that require them.
@netlify
Copy link

netlify bot commented Dec 11, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 66f162f
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6395c07d4f323f00095752a8
😎 Deploy Preview https://deploy-preview-3797--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Hi @IvanGoncharov, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@IvanGoncharov IvanGoncharov merged commit 142dfc8 into graphql:main Dec 12, 2022
@IvanGoncharov IvanGoncharov deleted the pr_branch branch December 12, 2022 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant