Skip to content

Commit bf847b7

Browse files
committed
fix(workflows): πŸš‘ fix permissions of workflows with label management
1 parent 42d4960 commit bf847b7

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

β€Ž.github/actions/update-status-label.shβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ label="$3"
1414
action="add-label" && [ "$status" == "success" ] && action="remove-label"
1515

1616
# Add or remove label
17+
export GH_TOKEN="$GITHUB_TOKEN"
1718
gh pr edit "$pr_number" --$action "$label"
1819

1920
[ "$action" == "add-label" ] && echo "βœ… Added \"$label\" label to PR #$pr_number"

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
permissions:
2929
contents: read
3030
pull-requests: write
31+
issues: write # Update issue labels
3132

3233
jobs:
3334
build:

β€Ž.github/workflows/color-check.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: read
1010
pull-requests: write
11+
issues: write # Update issue labels
1112

1213
jobs:
1314
color-check:

β€Ž.github/workflows/pr-title.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
pull-requests: write
9+
issues: write # Update issue labels
910

1011
jobs:
1112
lint-pr-title:

0 commit comments

Comments
Β (0)