Repository navigation
Fix labeler workflow permissions for fork PRs - #72
Closed
Shreesh-Sree with Copilot wants to merge 2 commits into
Closed
Shreesh-Sree with Copilot wants to merge 2 commits into
Shreesh-Sree with Copilot wants to merge 2 commits into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: Shreesh-Sree <192179721+Shreesh-Sree@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job labeler
Fix labeler workflow permissions for fork PRs
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the failing
labeler / label (pull_request)Actions job by switching the workflow topull_request_targetso label writes succeed on fork-originated PRs. The change is limited to workflow trigger/context alignment.Motivation
The labeler job failed with
Resource not accessible by integrationbecauseactions/labelerattempted to write labels with insufficient token permissions underpull_requestfor fork PRs.Implementation notes
pull_requesttopull_request_targetin.github/workflows/labeler.yml.iffrompull_requesttopull_request_targetto keep event gating consistent.Questions for the reviewer
Q1 — What existing tests cover the code you changed?
A: No repository test suite covers this change directly; it is a GitHub Actions workflow-only fix.
Q2 — What new tests did you add, and what cases do they cover?
A: None (workflow configuration change only).
Q3 — Does this change affect any authenticated or unauthenticated API paths? If yes, how?
A: No API path changes.
Q4 — Did you run
golangci-lint runlocally and get 0 issues?A: No (not applicable to this workflow-only change).
Q5 — Is this the only open PR you have against
development?A: Yes.
Checklist
go test -race -count=1 -timeout=120s ./...passes locallygolangci-lint run --timeout=5mreports 0 issuesgofmt -s -l .reports no unformatted files…)