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

Harden GitHub Workflows permissions #772

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

ste93cry
Copy link
Collaborator

It is important to apply the principle of least privilege to restrict the amount of damage that a compromised GitHub Workflow can do. To do so, within this PR I'm setting the token permissions to read-only. Since by default workflows run with extended set of permissions, by specifying any permission explicitly all others are set to none.

@ste93cry ste93cry merged commit 5431c13 into master Oct 25, 2023
28 checks passed
@ste93cry ste93cry deleted the harden-github-workflows branch October 25, 2023 10:22
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.

None yet

2 participants