Repository navigation
fix(deps): regenerate the OpenCode V2 pin digests when Renovate bumps it - #1998
Merged
Merged
Conversation
The V2 pin rule had no post-upgrade tasks, so a Renovate bump changed version and left the old digests, and CI failed closed. The rule now runs bun install, bun run postupgrade (scripts/sync-opencode-v2-pin.ts), then bun run build. Every command matches the runner's allowedCommands, which a new test pins.
fro-bot
approved these changes
Oct 31, 2026
fro-bot
left a comment
Owner
There was a problem hiding this comment.
Verdict: PASS
The command order regenerates digests before bundling, preserves install/build steps, and matches the upstream runner allowlist. No actionable correctness, security, or public-API regressions found.
Blocking issues
None
Non-blocking concerns
None
Missing tests
Optional: a subprocess smoke test for the Bun entry-point guard. Existing tests cover configuration wiring and injected sync behavior, but not execution through bun run postupgrade.
Risk assessment (LOW): likelihood of regression, security exposure, or blast radius
Scoped to V2 Renovate updates; digest validation and failure-before-write behavior remain intact. No tests, build, lint, or type checks were run, per instructions.
Run Summary
| Field | Value |
|---|---|
| Event | pull_request |
| Repository | fro-bot/agent |
| Run ID | 41162453053 |
| Cache | hit |
| Session | ses_e7015e49fffeYatsLwK6QaWOwW |
| Scope | All eight changed files and relevant sync tests |
| Verification | Static inspection and upstream runner allowlist inspection |
| Workflow limitation | Packaged review-validation references were access-denied; verdict is based on direct source inspection |
This was referenced Oct 31, 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.
When Renovate bumps the OpenCode V2 pin, it now regenerates the pin's sha256 digests. Before this, #1989 changed
versionand kept the 2.2.0 digests, so the V2 image build failed digest verification.postupgradetask. The V2 pin rule in.github/renovate.json5now runs its ownpostUpgradeTasks, in branch mode:bun install --ignore-scripts,bun run postupgrade(bun scripts/sync-opencode-v2-pin.ts), thenbun run build. A rule-level list replaces the top-level one, so the full list is repeated.allowedCommandsinbfra-me/renovate-action, andpostupgradeis one of the script names it allows.node scripts/...would be rejected.prBodyNotesinstruction to run the script by hand is gone.scripts/renovate-v2-pin-postupgrade.test.tspins the allowlist regexes copied from the action and asserts that all three commands match, in order.Verification
--checkexited 1 before the three commands and 0 against upstream 2.2.3 after them. I restored the pin afterwards; this PR doesn't bump it.bun installandbun updatedon't triggerpostupgrade.bun.check-types,lint,build(dist/unchanged) andtest:scripts(732) pass.Once this merges, ticking #1989's rebase box should regenerate it with correct 2.2.3 digests.