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:
2026-02-27 09:02:17 +02:00
parent 98d9f7410d
commit ae49ca90c6
4 changed files with 325 additions and 329 deletions

View File

@@ -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 }}

View File

@@ -20,7 +20,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
permissions:
contents: read
jobs:
labels: