Add token permissions to workflows for OpenSSF Scorecard compliance#2677
Merged
Conversation
d0c098c to
3233314
Compare
5c391da to
e6860c3
Compare
Aryan-sharma11
approved these changes
Jun 27, 2026
AryanBakliwal
approved these changes
Jun 29, 2026
Member
|
@asmit27rai, kindly rebase and squash the commits. |
Signed-off-by: asmit27rai <[email protected]> read permissions to push-stable-version job Signed-off-by: asmit27rai <[email protected]> replace the repo name Signed-off-by: asmit27rai <[email protected]> use minimal job-level permissions instead of read-all Signed-off-by: asmit27rai <[email protected]>
f787e8f to
97f44b6
Compare
Contributor
Author
|
@Aryan-sharma11 Squashed All The Commits. |
Member
|
LGTM 🚀 |
There was a problem hiding this comment.
Pull request overview
This PR updates GitHub Actions workflow GITHUB_TOKEN permissions to align with OpenSSF Scorecard’s Token-Permissions check, aiming to enforce least-privilege defaults while allowing specific jobs to elevate permissions when required.
Changes:
- Adds/adjusts workflow- and job-level
permissionsblocks in select workflows. - Narrows permissions for
ci-stable-release’s release job tocontents: read. - Cleans up minor YAML formatting (whitespace/quoting) in
ci-merge-coverage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/renovate.yml | Adds an explicit top-level permissions block for token-permissions compliance. |
| .github/workflows/ci-stable-release.yml | Adds job-level permissions for the stable release job and removes a stray YAML artifact. |
| .github/workflows/ci-merge-coverage.yaml | Adds top-level and job-level token permissions and normalizes minor YAML formatting. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Token-Permissions check on OpenSSF Scorecard (0 → 10).
Score