Skip to content

Commit 39cd827

Browse files
authored
Merge pull request #19241 from infosiftr/github-permissions
Fix creating new labels
2 parents 61c1b2e + 49c9136 commit 39cd827

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/munge-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ jobs:
8888
name: Apply Labels
8989
runs-on: ubuntu-latest
9090
needs: gather
91+
permissions:
92+
contents: read
93+
pull-requests: write
94+
# "issues: write" is now needed to create new labels
95+
# https://github.com/orgs/community/discussions/156181
96+
# but documentation still shows that pull-requests write should be enough 😓
97+
# https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#create-a-label
98+
issues: write
9199
if: fromJSON(needs.gather.outputs.images).imagesAndExternalPinsCount > 0
92100
steps:
93101
- name: Apply Labels

0 commit comments

Comments
 (0)