Fix PR labeler permissions

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
This commit is contained in:
Tobi 2023-09-27 10:04:27 +02:00
parent 0758cd6980
commit fe7d1692c3
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ jobs:
changed-lines-count-labeler: changed-lines-count-labeler:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Automatically labelling pull requests based on the changed lines count name: Automatically labelling pull requests based on the changed lines count
permissions:
pull-requests: write
steps: steps:
- name: Set a label - name: Set a label
uses: vkirilichev/changed-lines-count-labeler@v0.2 uses: vkirilichev/changed-lines-count-labeler@v0.2