Skip to content

Commit

Permalink
chore: fix pr-labeler permissions (aws#17398)
Browse files Browse the repository at this point in the history
Apparently, in order to add labels to a PR, the token must have write permissions to issues as well, otherwise it will silently fail.

See cli/cli#4631

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
iliapolo authored and TikiTDO committed Feb 21, 2022
1 parent 3dacccb commit e20bf2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- run: gh pr edit ${{ github.event.pull_request.number }} --add-label "pr/auto-approve" -R ${{ github.repository }}
env:
Expand Down

0 comments on commit e20bf2e

Please sign in to comment.