Fix creating new labels

This commit is contained in:
Joseph Ferguson 2025-06-10 11:07:50 -07:00
parent 61c1b2ee1a
commit 49c9136b42
1 changed files with 8 additions and 0 deletions

View File

@ -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