Joseph Ferguson 4 місяців тому
батько
коміт
49c9136b42
1 змінених файлів з 8 додано та 0 видалено
  1. 8 0
      .github/workflows/munge-pr.yml

+ 8 - 0
.github/workflows/munge-pr.yml

@@ -88,6 +88,14 @@ jobs:
     name: Apply Labels
     runs-on: ubuntu-latest
     needs: gather
+    permissions:
+      contents: read
+      pull-requests: write
+      # "issues: write" is now needed to create new labels
+      # https://github.com/orgs/community/discussions/156181
+      # but documentation still shows that pull-requests write should be enough 😓
+      # https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#create-a-label
+      issues: write
     if: fromJSON(needs.gather.outputs.images).imagesAndExternalPinsCount > 0
     steps:
       - name: Apply Labels