From 13102b0edb747eea102e54dfc3477a36b4fc37b9 Mon Sep 17 00:00:00 2001 From: Tobi Date: Wed, 27 Sep 2023 10:04:27 +0200 Subject: [PATCH] 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 --- .github/workflows/pr-labeler.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 5d7e48517..1108b526c 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -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