mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +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:
6
.github/workflows/stale.yaml
vendored
6
.github/workflows/stale.yaml
vendored
@ -7,8 +7,14 @@ on:
|
||||
# Run the stalebot every day at 9pm UTC
|
||||
- cron: "00 21 * * *"
|
||||
# yamllint disable rule:line-length
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write # for actions/stale to close stale issues
|
||||
pull-requests: write # for actions/stale to close stale PRs
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'ceph/ceph-csi'
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user