chore: Set permissions for GitHub actions
authornathannaveen <42319948+nathannaveen@users.noreply.github.com>
Wed, 15 Jun 2022 00:59:10 +0000 (00:59 +0000)
committernathannaveen <42319948+nathannaveen@users.noreply.github.com>
Wed, 15 Jun 2022 00:59:10 +0000 (00:59 +0000)
commit59bff4f1d494d0e6cf3cbfd6d9bd0ca7bced070b
treef734318748bb1258316b5339836b70902cb25240
parent8149bb4af8292013d746036fcc68e09b5e3efed7
chore: Set permissions for GitHub actions

 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](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
.github/workflows/regen.yml