terraform-provider-aws icon indicating copy to clipboard operation
terraform-provider-aws copied to clipboard

chore: Set permissions for GitHub actions

Open naveensrinivasan opened this issue 3 years ago • 3 comments

Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

  • Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests

Signed-off-by: naveen [email protected]

naveensrinivasan avatar Jul 02 '22 00:07 naveensrinivasan

@justinretzolk I don't have time to work on this PR now. I would request you, please, take it over. Thanks

naveensrinivasan avatar Oct 26 '22 18:10 naveensrinivasan

Hey @naveensrinivasan, no problem at all! Thank you for letting me know. We'll gladly take over from here. Thank you again for your contribution!

justinretzolk avatar Oct 26 '22 19:10 justinretzolk

Marking this pull request as stale due to inactivity. This helps our maintainers find and focus on the active pull requests. If this pull request receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this pull request was automatically closed and you feel this pull request should be reopened, we encourage creating a new pull request linking back to this one for added context. Thank you!

github-actions[bot] avatar Oct 18 '24 17:10 github-actions[bot]

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Dec 23 '24 02:12 github-actions[bot]