]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127785: Reduce permissions in the `check labels` workflow (#130596)
authorshenxianpeng <xianpeng.shen@gmail.com>
Wed, 26 Feb 2025 20:47:41 +0000 (04:47 +0800)
committerGitHub <noreply@github.com>
Wed, 26 Feb 2025 20:47:41 +0000 (20:47 +0000)
.github/workflows/require-pr-label.yml

index 0a6277c779ff67cbe14ff2d77db664e6f72b540c..7e534c58c798d1ccffbf9621ce1473ca0b50a659 100644 (file)
@@ -10,8 +10,7 @@ jobs:
     if: github.repository_owner == 'python'
     runs-on: ubuntu-latest
     permissions:
-      issues: write
-      pull-requests: write
+      pull-requests: read
     timeout-minutes: 10
 
     steps:
@@ -28,8 +27,7 @@ jobs:
     if: github.repository_owner == 'python'
     runs-on: ubuntu-latest
     permissions:
-      issues: write
-      pull-requests: write
+      pull-requests: read
     timeout-minutes: 10
 
     steps: