]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
chore: Set permissions for GitHub actions (#1035)
authornathannaveen <42319948+nathannaveen@users.noreply.github.com>
Sat, 4 Jun 2022 09:10:22 +0000 (04:10 -0500)
committerGitHub <noreply@github.com>
Sat, 4 Jun 2022 09:10:22 +0000 (11:10 +0200)
commit0dd2cc8ddfb7a48b693c12f20d68964a78912e59
tree7da018f1a6b20948e244c28dc76389d839dee9f4
parent67a7b94927fe13aa3e74d9172e07abb1fd148f80
chore: Set permissions for GitHub actions (#1035)

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/run-on-pr.yaml
.github/workflows/run-test.yaml