Skip to content

Commit

Permalink
Fix PR labeler permissions
Browse files Browse the repository at this point in the history
Although the permission to modify PRs is granted to the entire workflow, the job still reports that it does not the permission to do so:
GITHUB_TOKEN Permissions
  Contents: read
  Metadata: read
  PullRequests: read
This adds the permission to the job directly
  • Loading branch information
TobiGr committed Sep 27, 2023
1 parent 0758cd6 commit fe7d169
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
changed-lines-count-labeler:
runs-on: ubuntu-latest
name: Automatically labelling pull requests based on the changed lines count
permissions:
pull-requests: write
steps:
- name: Set a label
uses: vkirilichev/changed-lines-count-labeler@v0.2
Expand Down

0 comments on commit fe7d169

Please sign in to comment.