Skip to content

Commit 91ea4bf

Browse files
committed
workflows: Add token permissions
GH token by default dont have permission to change label if PR opened from other repo. Attempts to change permissions in settings didnt helped. Rant:Worst part of workflows, it is very difficult to simulate various situations, as there is no proper debugger. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 18467c2 commit 91ea4bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
if: failure() && github.event_name == 'pull_request'
5353
runs-on: ubuntu-latest
5454
needs: check
55+
permissions:
56+
contents: read
57+
pull-requests: write
5558
steps:
5659
- name: Add label to PR
5760
uses: actions/github-script@v7

0 commit comments

Comments
 (0)