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 permissions to GITHUB_TOKEN #2847

Closed
joycebrum opened this issue Sep 12, 2023 · 1 comment · Fixed by #2848
Closed

Set permissions to GITHUB_TOKEN #2847

joycebrum opened this issue Sep 12, 2023 · 1 comment · Fixed by #2848

Comments

@joycebrum
Copy link
Contributor

Hi, I'm Joyce, from the Google Open Source Security Team (GOSST). Setting the GITHUB_TOKEN permission is one of the OSSF Scorecard recommendation -- called Token-Permissions check.

The default permissions given to GITHUB_TOKEN is write all, which can be exploited by an attacker in case of a compromised action.

To mitigate this risk it is important to Use credentials that are minimally scoped.

I'll submit a PR together with the issue. Thanks.

@bhack
Copy link
Contributor

bhack commented Sep 12, 2023

Hi thank you for the PR. We will check It soon

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