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

Set least privilege permissions for GitHub Workflow tokens #29

Closed
gabibguti opened this issue Oct 7, 2022 · 2 comments · Fixed by #31
Closed

Set least privilege permissions for GitHub Workflow tokens #29

gabibguti opened this issue Oct 7, 2022 · 2 comments · Fixed by #31

Comments

@gabibguti
Copy link
Contributor

Proposal

Hello, I'm working on behalf of Google and the Open Source Security Foundation to help open-source projects improve their supply-chain security.

I see we are not setting minimum permissions for the GitHub Workflows in this project. And how does that matter? Setting minimum permission is interesting to prevent attackers from using a compromised GITHUB_TOKEN with write access to push malicious code into the project. And how do we do that? By setting permissions on each workflow to read only, or the least access they need.

This is considered a security best practice and therefore helps improve the project's security posture.

Would you be interested in a PR to do this?

Additional Context

Setting least privilege permissions is recommended by:

Let me know if you have any questions!

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/rc/issues/29

@goatandsheep
Copy link
Owner

Hi @gabibguti sure I'm open to it

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 a pull request may close this issue.

2 participants