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

🔒 Patch GitHub Actions workflow permissions #12

Merged
merged 2 commits into from
Jun 7, 2022
Merged

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Jun 7, 2022

To limit damage in case GITHUB_TOKEN or GitHub Actions are compromised, set the minimum token permissions and pin GitHub Actions to a full length commit SHA.

Patches #11, #3, #2

References:

Need to set write permissions for contents.
Restrict permissions for GITHUB_TOKEN to limit damage in case token is compromised, and pin actions to a full length commit SHA to mitigate risk of compromised Action. From https://github.com/step-security/secure-workflows.
@weiji14 weiji14 added maintenance skip-changelog Skip adding Pull Request to changelog labels Jun 7, 2022
@weiji14 weiji14 added this to the 0.1.0 milestone Jun 7, 2022
@weiji14 weiji14 self-assigned this Jun 7, 2022
@weiji14 weiji14 marked this pull request as ready for review June 7, 2022 01:02
@weiji14 weiji14 merged commit 09e53a2 into main Jun 7, 2022
@weiji14 weiji14 deleted the patch/workflow branch June 7, 2022 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant