From 5ba69e747fa9da984a307b2cbc9f82bac1e0db04 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 27 Feb 2025 04:47:41 +0800 Subject: gh-127785: Reduce permissions in the `check labels` workflow (#130596) --- .github/workflows/require-pr-label.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/require-pr-label.yml b/.github/workflows/require-pr-label.yml index 0a6277c..7e534c5 100644 --- a/.github/workflows/require-pr-label.yml +++ b/.github/workflows/require-pr-label.yml @@ -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: -- cgit v0.12