Set permissions for GitHub actions
authornaveensrinivasan <redacted>
Thu, 7 Apr 2022 23:00:53 +0000 (23:00 +0000)
committernaveensrinivasan <redacted>
Thu, 7 Apr 2022 23:00:53 +0000 (23:00 +0000)
commitb742118cd135d9d1c4322984b3c7a4977c0f3cf3
treee078ce28f8373a5cdf95f067b0c8e73d2c741b7f
parent8c355cf9b1b7d8cdd1daaf8b4f45c3c3d9dc08fd
Set permissions for GitHub actions

- 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/)

 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.

Signed-off-by: naveensrinivasan <redacted>
.github/workflows/ci.yml
git clone https://git.99rst.org/PROJECT