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: contents: read at workflow top level #246

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

bact
Copy link
Collaborator

@bact bact commented Jan 28, 2025

PR #245 improves the OpenSSF Scorecard from 7.5 to 8.1 but we probably can do better in the Token-Permission category (currently got 7).

Apart from set the write permission at job level, we have to set the read permission at the top level as well, as suggested in Remediation section of the code scanning report.

Apart from set the write permission at job level, we have to set the read permission at the top level as well.

Signed-off-by: Arthit Suriyawongkul <[email protected]>
@bact bact added security github_actions Pull requests that update GitHub Actions code labels Jan 28, 2025
@bact bact requested a review from jspeed-meyers January 28, 2025 03:25
Copy link
Collaborator

@jspeed-meyers jspeed-meyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@jspeed-meyers jspeed-meyers merged commit 7353ee1 into spdx:main Jan 28, 2025
6 checks passed
@bact bact deleted the set-top-level-permission-to-read branch January 28, 2025 17:06
@bact
Copy link
Collaborator Author

bact commented Jan 28, 2025

This one works. We got 10 points now for this category. Yay. (I feel I got gamified by OpenSSF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants