Skip to content

Improve workflow reliability and CLI verification - #1224

Merged
danbarr merged 4 commits into
mainfrom
fix-workflow-maintenance
Oct 9, 2026
Merged

danbarr merged 4 commits into
mainfrom
fix-workflow-maintenance

Conversation

@danbarr

@danbarr danbarr commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Unrelated PR comments can cancel active snapshot updates, the release workflow renders its PR body in a large inline Bash step, and Actions installs the ToolHive CLI without verifying its signature.

Scope snapshot concurrency to matching requests, extract PR-body rendering into a JavaScript helper, and verify the CLI's Sigstore bundle before extraction in all three Actions workflows that install it. Verification requires the exact ToolHive release workflow/tag identity and GitHub's OIDC issuer. Vercel keeps its existing dependencies.

The changes are split into three commits. Renderer coverage is limited to a historical PR-body comparison and section replacement.

Type of change

  • Bug fix (workflow reliability and release verification)

Related issues/PRs

Fixes #1112
Fixes #1115
Fixes #1223

Validation

  • Production build, Prettier, ESLint, ShellCheck, and both renderer tests pass.
  • Renderer output matches release PR Update stacklok/toolhive to v0.51.4 #1181 byte-for-byte; seven local comparisons against the original Bash renderer also matched.
  • Live signature verification passes for latest release v0.51.4 and visual-test pin v0.49.0. A tampered archive and an incorrect signing identity are rejected.
  • Actionlint passes with its unsupported, existing $/ local-action syntax diagnostic excluded.
  • Live GitHub Actions behavior still needs validation after these workflows reach the default branch.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 15:54
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-website Ready Ready Preview Oct 9, 2026 4:00pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Cosign installer requires envsubst, which is absent from both Playwright container jobs.

2 open findings
What changed in this PR

Improves workflow reliability, release PR rendering, and ToolHive CLI verification.

Changes:

  • Scopes snapshot concurrency to command requests.
  • Extracts and tests release PR-body rendering.
  • Adds Sigstore verification to Actions CLI installations.
File Description
scripts/​install-thv.sh Verifies release signatures before extraction.
scripts/​upstream-release/​render-pr-body.mjs Renders and updates release PR bodies.
scripts/​upstream-release/​render-pr-body.test.mjs Tests rendering and replacement.
scripts/​upstream-release/​fixtures/​release-1181-env.json Provides historical renderer input.
scripts/​upstream-release/​fixtures/​release-1181-section.txt Provides expected historical output.
.github/​workflows/​upstream-release-docs.yml Uses verified CLI installation and renderer.
.github/​workflows/​update-visual-baselines.yaml Fixes concurrency and enables verification.
.github/​workflows/​_visual-regression.yaml Enables verified CLI installation.
.github/​workflows/​_static-checks.yaml Runs renderer tests in CI.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@danbarr
danbarr merged commit ce7d8bb into main Oct 9, 2026
6 checks passed
@danbarr
danbarr deleted the fix-workflow-maintenance branch October 9, 2026 16:41

This branch was successfully deployed

1 active deployment
Preview — 54448344 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants