android icon indicating copy to clipboard operation
android copied to clipboard

chore: Set permissions for GitHub actions

Open naveensrinivasan opened this issue 3 years ago • 1 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 02 '22 01:05 naveensrinivasan

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 02 '22 01:05 CLAassistant

CI works ! Why not simply merge it ? It's a shame doing nothing within 8 months. If I could merge, I would do it immediate. This is not the way to motivate to contribute

hannesa2 avatar Jan 25 '23 08:01 hannesa2