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

Explicitly grant required permissions to workflow #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SIMULATAN
Copy link

@SIMULATAN SIMULATAN commented Mar 24, 2023

GitHub has recently changed the default permissions of workflows to be read-only for security reasons.

This causes the action to fail on repositories that don't explicitly grant all possible permissions to the workflows, meaning every repository created after the 2nd of February 2023 doesn't work per default.

To fix this in a secure manner, I manually specified the required permissions in the workflow file.
Tested on both a dummy repository and a production one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant