Skip to content

Commit 8815b38

Browse files
ci!: set pr write perms on release-labels (#16380)
I'm pretty sure this is the fix, but I can't test it without merging it, as `pull_request_target` causes the workflow to run using the workflow on `main` (where the permissions aren't set). This comment would seem to indicate that `pull_request_target` with PR write perms does the trick: actions/labeler#136 (comment) From what I can tell this job has been broken since ~nov '24, which leads me to believe it was the permissions change made that month: https://github.com/coder/coder/actions/runs/11915659159/job/33206435274
1 parent 8d8d41e commit 8815b38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/contrib.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646

4747
release-labels:
4848
runs-on: ubuntu-latest
49+
permissions:
50+
pull-requests: write
4951
# Skip tagging for draft PRs.
5052
if: ${{ github.event_name == 'pull_request_target' && !github.event.pull_request.draft }}
5153
steps:

0 commit comments

Comments
 (0)