]> git.ipfire.org Git - thirdparty/lxc.git/commit
chore: Set permissions for GitHub actions 4136/head
authorneilnaveen <42328488+neilnaveen@users.noreply.github.com>
Wed, 8 Jun 2022 01:08:12 +0000 (01:08 +0000)
committerneilnaveen <42328488+neilnaveen@users.noreply.github.com>
Wed, 8 Jun 2022 01:08:12 +0000 (01:08 +0000)
commitfe3add2ab8fb87fc21dd540fc574e03765dd1986
treeddf2c80fb8198ec615db8816b303906b18d88e05
parent099bd13ce59473dd96cc7f5a2aae0b8df18ac747
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: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
.github/workflows/build.yml
.github/workflows/coverity.yml
.github/workflows/sanitizers.yml
.github/workflows/static-analysis.yml