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

Improve: Reduce the GitHub workflow tokens' permissions to the minimal #653

Open
1 task done
Danajoyluck opened this issue Jul 30, 2024 · 0 comments
Open
1 task done

Comments

@Danajoyluck
Copy link

What do you want to share with us?

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
Warn: jobLevel 'contents' permission set to 'write': .github/workflows/cd.yml:69
Warn: topLevel 'contents' permission set to 'write': .github/workflows/cd.yml:10
Warn: no topLevel permission defined: .github/workflows/ci.yml:1
Warn: no topLevel permission defined: .github/workflows/functional-tests.yml:1
Warn: no topLevel permission defined: .github/workflows/review-approved.yml:1
Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18
Warn: no topLevel permission defined: .github/workflows/update-pre-commit-hooks.yml:1
Warn: no topLevel permission defined: .github/workflows/update-python-deps.yml:1

References

"Token Permissions" check in Scorecard report: https://scorecard.dev/viewer/?uri=github.com/repository-service-tuf/repository-service-tuf-cli

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant