mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
ci: 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-jobs/assigning-permissions-to-jobs Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com> naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
3
.github/workflows/lint-extras.yaml
vendored
3
.github/workflows/lint-extras.yaml
vendored
@ -5,6 +5,9 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint-extras:
|
||||
name: lint-extras
|
||||
|
Reference in New Issue
Block a user