Repository navigation
fix(ci): allow bot responses on fork PR inline review comments - #1421
Merged
Merged
Conversation
The fork filter (`head.repo.full_name == github.repository`) on the `pull_request_review_comment` trigger was added in cd16545 as a workaround when the original code used `secrets.*` in a job-level `if:`. The assumption was that secrets aren't available for fork PRs — but that restriction only applies to `pull_request` events, not `pull_request_review_comment` (which runs on the base repo). The `issue_comment` path already works on fork PRs with full secret access, confirming this event type does too. Remove the fork filter so inline review comments on fork PRs get bot responses. Closes #1419 Co-Authored-By: Claude Opus 4.6 <[email protected]>
This was referenced Mar 10, 2026
Closed
worktrunk-bot
added a commit
that referenced
this pull request
Mar 10, 2026
PR #1421 removed the fork filter based on the incorrect assumption that `pull_request_review_comment` events have access to secrets for fork PRs. Run 22914840420 proved this wrong — checkout failed with "Input required and not supplied: token" because WORKTRUNK_BOT_TOKEN was empty. `pull_request_review_comment` runs in the fork context (like `pull_request`), NOT in the base repo context (like `pull_request_target` or `issue_comment`). Fork PRs should use conversation-tab @worktrunk-bot mentions instead, which go through `issue_comment` and always have secret access. Closes #1424 Co-Authored-By: Claude Opus 4.6 <[email protected]>
3 tasks
worktrunk-bot
added a commit
that referenced
this pull request
Mar 10, 2026
PR #1421 removed the fork filter based on the incorrect assumption that pull_request_review_comment has secret access for fork PRs. It does not — run 22914840420 failed at checkout with an empty token. Restore the fork filter and document fork PR secret availability for all event types. Closes #1424 Co-authored-by: Claude <[email protected]>
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
head.repo.full_name == github.repository) from thepull_request_review_commenttrigger inclaude-mention.yamlpull_requestevents, notpull_request_review_comment(which runs on the base repo and has full secret access)issue_commentpath already works on fork PRs, confirming thisSupersedes #1420 (workaround that only posted a redirect notice).
Test plan
@worktrunk-boton a fork PRCloses #1419
🤖 Generated with Claude Code