]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Update workflow permissions in require-pr-label Action (GH-109342) (#109354)
authorMariatta <Mariatta@users.noreply.github.com>
Wed, 13 Sep 2023 04:24:43 +0000 (21:24 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2023 04:24:43 +0000 (07:24 +0300)
Change the permission from `read` to `write`..
(cherry picked from commit 44c8699196c1951037bc549c895ea5af26c7254e)

.github/workflows/require-pr-label.yml

index 916bbeb4352734dfbef689e485baa969f6ab98e3..080204bcfd3b94f0fe23854fbe90bbad8bbdadf4 100644 (file)
@@ -4,6 +4,10 @@ on:
   pull_request:
     types: [opened, reopened, labeled, unlabeled, synchronize]
 
+permissions:
+  issues: write
+  pull-requests: write
+
 jobs:
   label:
     name: DO-NOT-MERGE / unresolved review
@@ -11,7 +15,7 @@ jobs:
     timeout-minutes: 10
 
     steps:
-      - uses: mheap/github-action-required-labels@v4
+      - uses: mheap/github-action-required-labels@v5
         with:
           mode: exactly
           count: 0