-
-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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: Resolve OSSF GitHub token permissions security alerts #2891
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
permissions: | ||
actions: read | ||
checks: read | ||
contents: write |
Check failure
Code scanning / Scorecard
Token-Permissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anuraghazra, would it be possible to restrict the `GITHUB_TOKEN permissions so we can merge this pull request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rickstaa This alerts can be dismissed with "Used only in tests" reason. We cannot resolve them because this permissions required for workflows running. I think that if you approve it we can merge it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whats this about, but approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rickstaa This alerts can be dismissed with "Used only in tests" reason. We cannot resolve them because this permissions required for workflows running. I think that if you approve it we can merge it now.
Thanks for the explanation, makes sense!
@@ -4,6 +4,21 @@ | |||
types: | |||
- closed | |||
|
|||
permissions: | |||
actions: write |
Check failure
Code scanning / Scorecard
Token-Permissions
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #2891 +/- ##
=======================================
Coverage 97.61% 97.61%
=======================================
Files 24 24
Lines 5156 5156
Branches 460 460
=======================================
Hits 5033 5033
Misses 122 122
Partials 1 1 ☔ View full report in Codecov by Sentry. |
@qwerty541 looks like your changes broke the prs-cache-clean.yml action (see https://github.com/anuraghazra/github-readme-stats/actions/runs/5435282842/workflow) 🤔. Very strange since |
It looks like the vscode-github-action plugin also flags this as a syntax error: As the error goes away when I change to References |
It looks like all actions with |
@qwerty541 as far as I could understand it, we can also solve this by removing the |
No description provided.