ci: opt into v7 fork-PR checkout so tend-review runs on fork PRs#6038
Merged
Conversation
actions/checkout@v7 refuses fork-PR checkout under pull_request_target unless allow-unsafe-pr-checkout: true is set. Mirrors the upstream tend fix (max-sixty/tend#725, in 0.1.7). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 25, 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.
Problem
tend-reviewfails at the checkout step for fork PRs (e.g. #6037), turning thereviewcheck red before the review ever runs:Root cause
actions/checkout@v7.0.0(2026-06-18) added PR #2454, a guard that refuses to check out fork-PR code when the trigger ispull_request_target, unlessallow-unsafe-pr-checkout: trueis set.tend-review.yamlison: pull_request_targetand feedsactions/checkoutthe fork ref directly, so every fork PR trips it. (Same-repo PRs are unaffected;tend-mentionis unaffected because it checks out the base repo and thengh pr checkouts the branch — the action never sees a fork ref.)The pin here is
actions/checkout@v7(Dependabot bumped it from the v6 that tend 0.1.6 generates), but the matchingallow-unsafe-pr-checkoutflag was not added, so the workflow is in the broken middle state.Fix
Add
allow-unsafe-pr-checkout: trueto thetend-reviewcheckout step. This mirrors the upstream tend resolution: issue max-sixty/tend#723 → the maintainer chose this option → max-sixty/tend#725 merged it, shipped in tend 0.1.7 (this repo is pinned to 0.1.6).This is a focused stopgap on the generated file so fork-PR reviews work again immediately; it will be superseded — with identical content for this line — by the next tend 0.1.7 workflow regen.
🤖 Generated with Claude Code