GH: explicitly set permissions in workflows

These will override the default repo/org GITHUB_TOKEN scope.
This commit is contained in:
Andrew Clayton committed 2026-06-30 19:36:43 +01:00
1 parent 072f6fdbac
commit 8f3465ac7f
5 files changed
+16

No files matched your search

+3
View File
@@ -6,6 +6,9 @@ on:
- master
- 'stable-1.*'
permissions:
contents: read
jobs:
buildbot:
uses: nginx/ci-self-hosted/.github/workflows/nginx-buildbot.yml@main
@@ -7,6 +7,9 @@ on:
pull_request:
types: [ opened, synchronize ]
permissions:
contents: read
jobs:
check-commit-messages:
runs-on: ubuntu-24.04
+4
View File
@@ -3,6 +3,10 @@ name: check-pr
on:
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
check-pr:
uses: nginx/ci-self-hosted/.github/workflows/nginx-check-pr.yml@main
@@ -4,6 +4,9 @@ on:
pull_request:
types: [ opened, synchronize ]
permissions:
contents: read
jobs:
check-version-bump:
runs-on: ubuntu-24.04
+3
View File
@@ -6,6 +6,9 @@ on:
pull_request:
types: [ opened, synchronize ]
permissions:
contents: read
jobs:
check-whitespace:
runs-on: ubuntu-24.04