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

Add write contents permissions to release workflow #31

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

nmanoogian
Copy link
Member

This permission is required to allow the runner to post the build artifacts to the release.

Screen Shot 2022-11-01 at 1 35 04 PM

@nmanoogian nmanoogian requested a review from Piccirello November 1, 2022 17:36
Comment on lines 18 to 19
permissions:
contents: write
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this to the individual job, rather than the entire workflow? Also, since you're specifying an allowlist of perms, it'll drop all other perms. Are there any other read perms this workflow will need?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great callout 👍 We need to be able to checkout the repo but that should be included in contents: write (because it extends read)

@nmanoogian nmanoogian force-pushed the nic/release-permissions branch from c5e5e0b to f3f2353 Compare November 1, 2022 19:30
@nmanoogian nmanoogian requested a review from Piccirello November 1, 2022 19:30
@nmanoogian nmanoogian merged commit 72b7f38 into master Nov 1, 2022
@nmanoogian nmanoogian deleted the nic/release-permissions branch November 1, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants