diff options
author | Naveen <172697+naveensrinivasan@users.noreply.github.com> | 2022-05-03 04:33:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 02:33:34 -0700 |
commit | 9ef7d3c4b1fc451bee5a18b10b74f4cabb1e048d (patch) | |
tree | df31c49c9ed493c53c4c4595b5ed289f5f67b765 /coverage/control.py | |
parent | 420c01394a31415d7a7cbb80be196bcfca48482c (diff) | |
download | python-coveragepy-git-9ef7d3c4b1fc451bee5a18b10b74f4cabb1e048d.tar.gz |
build: Set permissions for GitHub actions (#1369)
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: naveen <172697+naveensrinivasan@users.noreply.github.com>
Diffstat (limited to 'coverage/control.py')
0 files changed, 0 insertions, 0 deletions