mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-02-27 18:53:07 +00:00
fix(ci): replace read-all with specific permissions in workflows
Replace overly broad `permissions: read-all` with minimal `contents: read` at workflow level in pr-lint.yml and sync-labels.yml. Job-level permissions already declare specific needs.
This commit is contained in:
3
.github/workflows/pr-lint.yml
vendored
3
.github/workflows/pr-lint.yml
vendored
@@ -10,7 +10,8 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
3
.github/workflows/sync-labels.yml
vendored
3
.github/workflows/sync-labels.yml
vendored
@@ -20,7 +20,8 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user