]> git.kaiwu.me - nginx.git/commitdiff
GH: explicitly set permissions in workflows
authorAndrew Clayton <a.clayton@nginx.com>
Wed, 10 Jun 2026 04:52:46 +0000 (05:52 +0100)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 20 Oct 2026 17:42:11 +0000 (21:42 +0400)
These will override the default repo/org GITHUB_TOKEN scope.

.github/workflows/buildbot.yml
.github/workflows/check-pr.yml

index 484b74f985f9a51c5ebcfcf7cdfe2dab7f10c1c9..490491f3622ccd66d4549ebff6bb9848cfc1a6b5 100644 (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
index 92c0ea6bfe1383387f62947838f486982691c301..ccde32057c21246549bc0d74f81a82c12ca0159b 100644 (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