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

[feature] Reduce the GitHub workflow tokens' permissions to the minimal #2054

Open
Danajoyluck opened this issue Jul 30, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Danajoyluck
Copy link

Is your feature request related to a problem? Please describe.
Scorecard reports the below findings. If the report is accurate, the token permissions need to be reduced to the minimal.

"reason": "detected GitHub workflow tokens with excessive permissions",
"details": [
"Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yaml:31",
"Info: topLevel 'contents' permission set to 'read': .github/workflows/db-performance-test.yaml:27",
"Warn: no topLevel permission defined: .github/workflows/nightly-release.yaml:1",
"Info: topLevel 'contents' permission set to 'read': .github/workflows/postmerge.yaml:20",
"Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yaml:27",
"Warn: topLevel 'packages' permission set to 'write': .github/workflows/release.yaml:28",
"Info: topLevel 'actions' permission set to 'read': .github/workflows/release.yaml:26",
"Warn: no topLevel permission defined: .github/workflows/reusable-local-build.yaml:1",
"Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18",
"Info: no jobLevel write permissions found"
],

Describe the solution you'd like
Talked to Michael and he said he can apply the solution that he used before to GUAC.

Describe alternatives you've considered
N/A

Additional context
https://api.securityscorecards.dev/projects/github.com/guacsec/guac

@Danajoyluck Danajoyluck added the enhancement New feature or request label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant