mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-07 07:56:17 +00:00
fix: harden workflow permissions with deny-all top-level and least-privilege job scopes (#482)
This commit is contained in:
3
.github/workflows/sync-labels.yml
vendored
3
.github/workflows/sync-labels.yml
vendored
@@ -22,7 +22,7 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
labels:
|
||||
@@ -31,6 +31,7 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user