-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ci: Add GitHub token permissions for workflows #105003
Conversation
Signed-off-by: Varun Sharma <[email protected]>
I could not set the right permissions for Not sure how the
|
|
Do any of these actually use the |
Sounds like a good reason to limit the permissions of it to no-permissions rather than the default of write-all (read-all for PRs). Though to answer your question: it is used in the scenarios I mentioned above, because it has a significantly higher rate limit than no token. |
The organization default is now the same as set in this PR. |
I believe this means that if any of the workflows in the organization are using the If that happens, you can add explicit workflow/ job level permissions for that workflow. You can use https://github.com/step-security/secure-workflows to add explicit permissions. |
This PR adds minimum token permissions for the GITHUB_TOKEN using https://github.com/step-security/secure-workflows.
GitHub recommends defining minimum GITHUB_TOKEN permissions for securing GitHub Actions workflows
This project is part of the top 100 critical projects as per OpenSSF (https://github.com/ossf/wg-securing-critical-projects), so fixing the token permissions to improve security.
Signed-off-by: Varun Sharma [email protected]
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?