From: Andrew Clayton Date: Wed, 10 Jun 2026 04:52:46 +0000 (+0100) Subject: GH: explicitly set permissions in workflows X-Git-Tag: release-1.30.7~21 X-Git-Url: https://git.kaiwu.me/http/%7Bsubstring-before(@doc,%20'.xml')%7D.html?a=commitdiff_plain;h=64297a014c15bffd3e8ff3d347398875f4015ba3;p=nginx.git GH: explicitly set permissions in workflows These will override the default repo/org GITHUB_TOKEN scope. --- diff --git a/.github/workflows/buildbot.yml b/.github/workflows/buildbot.yml index 484b74f98..490491f36 100644 --- a/.github/workflows/buildbot.yml +++ b/.github/workflows/buildbot.yml @@ -6,6 +6,9 @@ on: - master - 'stable-1.*' +permissions: + contents: read + jobs: buildbot: uses: nginx/ci-self-hosted/.github/workflows/nginx-buildbot.yml@main diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 92c0ea6bf..ccde32057 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -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