Skip to content

Commit

Permalink
fix(workflows/labeler): grant "issues: write" permission (#25142)
Browse files Browse the repository at this point in the history
The pr-size-labeler action currently relies on that permission, because it uses 
the issues API (which requires the issues permission), not the labels API (which 
requires either the issues or the pull requests permission).
  • Loading branch information
caugner authored Nov 20, 2024
1 parent e6bd0ca commit 8b4b2b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:

permissions:
contents: read # to determine modified files
issues: write # pr-size-labeler uses the issues API until https://github.com/CodelyTV/pr-size-labeler/pull/89 is merged
pull-requests: write # to add labels to PRs

jobs:
Expand Down

0 comments on commit 8b4b2b7

Please sign in to comment.