gmt icon indicating copy to clipboard operation
gmt copied to clipboard

chore: Set permissions for GitHub actions

Open naveensrinivasan opened this issue 2 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 May 01 '22 01:05 naveensrinivasan

πŸ’– Thanks for opening this pull request! πŸ’–

Please make sure you read our Contributing Guide and abide by our Code of Conduct.

A few things to keep in mind:

  • If you need help writing tests, take a look at the existing ones for inspiration. If you don't know where to start, let us know and we'll walk you through it.
  • All new features should be documented. It helps to write the comments below for your functions describing the it, all arguments, and return types before writing the code. This will help you think about your code design and results in better code.
  • We are grateful that you put in the effort to do this! πŸŽ‰

welcome[bot] avatar May 01 '22 01:05 welcome[bot]

Hi @seisman and @maxrjones, what to do with this one?

PaulWessel avatar Aug 16 '22 10:08 PaulWessel

Looks good to me.

seisman avatar Aug 17 '22 10:08 seisman