Repository navigation
ci(tend-review): pin actions/checkout back to v6 for fork-PR review - #3176
Merged
Merged
Conversation
actions/checkout@v7 refuses fork-PR checkout under pull_request_target, breaking automated review for every fork PR (e.g. #3172 got zero review). v6 has no guard and matches what the tend 0.1.6 generator emits; the v7 in the committed file was Dependabot drift (#3131). Durable fix is upstream (max-sixty/tend#723). Co-Authored-By: Claude Opus 4.8 <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Jun 25, 2026
Automated nightly regeneration of tend's workflow files. **tend version:** 0.1.6 → 0.1.7 **Notable changes:** - **Fork-PR review checkout fixed properly** (max-sixty/tend#725) — `tend-review` now uses `actions/checkout@v7` with `allow-unsafe-pr-checkout: true`, the upstream-intended way to re-enable fork-PR ref checkout that v7 blocks by default. This supersedes the manual `actions/checkout@v6` stopgap pinned in #3176: the generator now carries the fix, so the regen restores v7 with the explicit opt-in rather than the downgrade. - **CI-poll loops trimmed to fit the Bash tool's 10-min cap** (max-sixty/tend#695) — `running-in-ci` CI-monitoring loops are sized so they don't auto-background and drop a gated follow-up. - **Scope blockers surfaced instead of routed around** (max-sixty/tend#717) — when a scope rule blocks the correct action, the bot now reports the blocker on the thread rather than silently substituting a workaround. - **Nightly regen worktree bases on the open PR, not the branch ref** (max-sixty/tend#721) — keeps the regen diff incremental and the PR body accurate. - **Shared step scripts; actions named by harness** (max-sixty/tend#712) — explains the regenerated comment in `tend-notifications.yaml` ("the harness action's post-step"). Compare: max-sixty/tend@0.1.6...0.1.7 Co-authored-by: worktrunk-bot <[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.
What
Pin
actions/checkoutback to@v6intend-review.yaml(only). This is the version the tend0.1.6generator emits; the@v7in the committed file is Dependabot drift from #3131, and it broke automated review for fork PRs.Why — fork-PR review is currently broken
actions/[email protected](released 2026-06-18, actions/checkout#2454) added a guard that refuses to check out fork-PR code when the workflow is triggered bypull_request_targetunlessallow-unsafe-pr-checkout: trueis set.tend-review.yamlis exactly that pattern (on: pull_request_target, thenactions/checkoutwithref: refs/pull/$PR/merge), so every fork PR now fails at the checkout step before the review runs.This already hit a real external contribution. #3172 (a fork PR from
@yzx9, opened 05:58Z) got zero review and zero bot comment — all threetend-reviewruns failed atactions/checkout@v7in ~5–7s:opened)synchronize)synchronize)The failing step's error:
The guard fires only on fork PRs — same-repo PRs (including all bot-authored branches) are unaffected, which is why the breakage stayed invisible until the first fork PR arrived after the bump.
Why
@v6is the right pin here (notallow-unsafe-pr-checkout: true)@v6has no guard — it restores the exact behavior worktrunk already ran before Dependabot chore: bump actions/checkout from 6 to 7 #3131, so this is not a new security tradeoff.[email protected]generates: the generator emitsactions/checkout@v6, so a futureuvx tend@latest initregen produces zero diff on this line.allow-unsafe-pr-checkout: true) requires staying on v7 and explicitly opts back into the "pwn request" exposure the guard exists to prevent (fork code fetched into a context holdingTEND_BOT_TOKEN+ the harness OAuth token). That's a deliberate security decision, not a drift fix.Scope kept minimal: only
tend-review.yamlis touched. The other seventend-*.yamlworkflows and the non-tend CI workflows checkout the base repo (not a fork ref), so@v7is fine for them and #3131 stays in place there.Durable fix is upstream
The root cause is in the tend
tend-reviewtemplate (it feeds a fork ref straight toactions/checkoutunderpull_request_target), so the long-term fix belongs there and is already filed:tend-mention's version-agnosticgh pr checkout;allow-unsafe-pr-checkout: true; or review from the API diff). Security-sensitive, left to a maintainer.@v6downgrade is the correct result for thepull_request_targetreview workflow.Heads-up: Dependabot will try to re-bump this
.github/dependabot.yamlruns thegithub-actionsecosystem daily with no ignore, so Dependabot will likely open anotheractions/checkout6→7 bump that re-touches this file. Until tend's review template adopts a v7-compatible pattern (#723), please don't merge that bump fortend-review.yaml— or add a scopedignoreforactions/checkoutin the github-actions Dependabot config. Left out of this PR since freezing checkout repo-wide is a broader call than the drift fix.