Repository navigation
Conversation
Version tags were created by tag-release.yml with `git tag "$tag" "$SHA"` — a lightweight tag, which has no tag object to carry a signature. Since v11.18.0 that made `git verify-tag` fail outright with `cannot verify a non-tag object of type commit`, breaking downstream packagers who verify the tag before building. Signing those tags in CI would restore verify-tag but not the property that makes it worth verifying: the key would live in Actions secrets, inside the same trust boundary the signature is supposed to attest independently of. So drop the automation instead and cut tags from a maintainer machine, with the key never leaving it. release.yml is unchanged — it still triggers on pushed version tags, so a tag pushed by a maintainer starts a release exactly as the CI-pushed one did. RELEASING.md records the per-product manifests and tag prefixes that the deleted workflow encoded, plus a verify-tag step before pushing. The release commit is still merged through GitHub and keeps its web-flow signature; that gap is noted in RELEASING.md. Refs: #13578 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe release process now uses maintainer-created signed annotated product tags. Automatic tag creation was removed. The release workflow verifies tags against committed trusted keys before publishing. ChangesRelease process
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Maintainer
participant GitHub
participant release.yml
participant GPG
Maintainer->>GitHub: Push signed product tag
GitHub->>release.yml: Trigger release workflow
release.yml->>GPG: Import committed release key
release.yml->>GPG: Verify tag signature
GPG-->>release.yml: Return trusted or rejected result
release.yml->>GitHub: Publish artifacts when verification succeeds
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoCI: stop auto-tagging; require maintainer-signed release tags
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Confidence Score: 5/5The PR appears safe to merge. The previously reported retry and dispatch documentation defects are corrected, and no blocking failure remains. Reviews (6): Last reviewed commit: "docs(release): state the tag gate's cont..." | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
The retry paragraph claimed re-pushing a tag resumes a partial release. Pushing a tag already on the remote is a no-op that fires no push event, so it starts no run at all — a rerun goes through the Actions UI or workflow_dispatch. It also implied a rerun is a clean slate. The plan job gates on each product's last-published package, so a partially failed run is picked up again, but the packages already published in the failed run are immutable on npm. Say so, and point at the run logs. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/create-release-pr.yml:
- Line 219: Update the release-related workflow permissions and tag protections
so CI credentials cannot create or push unsigned version tags matching the
release patterns, including v*.*.* and pnpr@*.*.*. Ensure releases rely only on
maintainer-created signed tags, and remove any stale tag-release.yml references.
In `@RELEASING.md`:
- Around line 41-46: Update the Step 4 verification instructions in RELEASING.md
to require running git verify-tag once for every tag created in Step 3,
including both v<version> and pnpr@<version> when applicable, so pnpr-only and
multi-product releases are fully verified.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e4695a70-cf25-4c68-a993-ccfae5051f4b
📒 Files selected for processing (4)
.github/workflows/create-release-pr.yml.github/workflows/release.yml.github/workflows/tag-release.ymlRELEASING.md
💤 Files with no reviewable changes (1)
- .github/workflows/tag-release.yml
The practice is to fix the code, move the tag to the new commit and push it again — which does start a run, because re-creating the tag changes the ref and fires a push event. Only pushing an unchanged tag is the silent no-op. Spell out the retag sequence with `git tag -s`, since `git tag -f` alone would replace a signed tag with an unsigned one and walk straight back into #13578. Note that a fix touching an already-published package needs a new version, and that a tag must never move once its release has completed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 8fad4a6 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@RELEASING.md`:
- Around line 62-75: Update the retry command block in the release instructions
to use the actual pnpr@<version> tag name and an explicit fixed commit variable
or reference for both deleting/recreating the tag and signing it. Ensure the
commands cannot default to the current HEAD or recreate a different tag, while
preserving the existing remote tag replacement and push flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4205ddca-b36e-436a-9f32-c7d4afb1e72c
📒 Files selected for processing (1)
RELEASING.md
Deleting tag-release.yml stops CI from creating unsigned tags, but nothing stopped a compromised workflow or a token with tag scope from pushing a `v*.*.*` tag and triggering a publish — release.yml published on any tag matching the pattern, without asking who made it. The signed-tag rule was documented and unenforced. Add a verify-release-tag job that imports the public keys committed under .github/release-keys into a throwaway keyring and runs `git verify-tag` on the pushed tag. Every publish path descends from `plan` and `plan` now descends from this job, so one edge gates all three products. Verified against a real signed tag, a lightweight tag, an annotated unsigned tag, and a tag signed by a key outside the directory: only the first proceeds. The keyring is isolated to $GNUPGHOME so verification cannot accidentally succeed against a key already present on the runner, and checkout sets fetch-tags because a tag push checks out the commit while the signature lives on the tag object. The non-tag case exits from inside the step rather than a job-level `if`: a skipped job skips everything that needs it, which would take plan and the whole verify_ts_release dispatch path down with it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
RELEASING.md (1)
17-35: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winUse distinct release tags for the two pnpm CLIs.
RELEASING.mddocuments twov<version>tags, butrelease.ymltreats av<version>tag as either the TypeScript or Rust product and will release only the product whose committed version matches first. This can create a tag that cannot be pushed because the secondgit tag -salready exists, or release one package with the other product’s published artifacts. Use separate tag prefixes/namespaces, or add release validation and docs that forbid equal versions.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@RELEASING.md` around lines 17 - 35, Update the release tag convention in RELEASING.md and the corresponding release.yml handling so the TypeScript pnpm and Rust pacquet products always use distinct, unambiguous tag namespaces. Ensure each product’s documented tag format matches the workflow’s trigger and product-selection logic, preventing collisions when versions are equal and avoiding publishing artifacts under the wrong product.
🧹 Nitpick comments (1)
.github/workflows/release.yml (1)
63-69: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRemove references to the deleted automatic-tag workflow.
State the current threat model directly. Do not describe removed implementation history.
.github/workflows/release.yml#L63-L69: describe the unsigned-tag threat and the verification requirement without referring to the removed workflow.RELEASING.md#L102-L104: describe the unauthorized-tag threat without referring to the removed workflow.As per path instructions, workflow and documentation changes must preserve current contracts without comments describing removed implementation history.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/release.yml around lines 63 - 69, Update the comments at .github/workflows/release.yml lines 63-69 and RELEASING.md lines 102-104 to state only the current threats: unsigned or unauthorized v*.*.* tags reaching publication, and the requirement that tags be verified against .github/release-keys. Remove all references to the deleted automatic-tag workflow or its implementation history while preserving the existing release and verification contracts.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 77-119: Move the tag-signature verification out of the
tag-triggered workflow definition and into a workflow loaded from an immutable
protected ref, such as a protected branch or pinned commit. Update the checkout
and key-loading logic around “Checkout” and “Verify the tag signature” so both
the verification script and `.github/release-keys/*.asc` come exclusively from
that protected trusted ref, while the pushed tag supplies only the release
target being verified.
---
Outside diff comments:
In `@RELEASING.md`:
- Around line 17-35: Update the release tag convention in RELEASING.md and the
corresponding release.yml handling so the TypeScript pnpm and Rust pacquet
products always use distinct, unambiguous tag namespaces. Ensure each product’s
documented tag format matches the workflow’s trigger and product-selection
logic, preventing collisions when versions are equal and avoiding publishing
artifacts under the wrong product.
---
Nitpick comments:
In @.github/workflows/release.yml:
- Around line 63-69: Update the comments at .github/workflows/release.yml lines
63-69 and RELEASING.md lines 102-104 to state only the current threats: unsigned
or unauthorized v*.*.* tags reaching publication, and the requirement that tags
be verified against .github/release-keys. Remove all references to the deleted
automatic-tag workflow or its implementation history while preserving the
existing release and verification contracts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: f67e1c3f-51b4-4587-a1de-f6dc846d32a8
📒 Files selected for processing (3)
.github/release-keys/zkochan.asc.github/workflows/release.ymlRELEASING.md
|
Code review by qodo was updated up to the latest commit 986b65a |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Four review findings, all in the manual procedure: `git tag -s <name>` with no target signs whatever HEAD happens to be. Since the tag is what release.yml builds and publishes from, a stray HEAD ships unreviewed code under a released version number. Both the initial tagging and the retry path now pass an explicit commit. Verification covered only `v<version>`, so a multi-product release could push an unverified pnpr tag and a pnpr-only release had no documented check at all. The steps now collect every tag into an array and verify each one. The retry snippet hard-coded `v<version>`, which is wrong for pnpr. Dispatching the workflow to rerun a release only works against the release tag — validate-release-ref rejects a dispatch from a branch, so the previous wording would have published nothing. Versions are read with `git show <sha>:<manifest>` rather than the worktree, so the tag name comes from the same commit being tagged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Code review by qodo was updated up to the latest commit b08176f |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
The comment on verify-release-tag narrated what the release process used to do, which CLAUDE.md keeps out of source and in git log. It also claimed a tag outside .github/release-keys "cannot reach any publish job" — a tag push runs the workflow file and checks out the tree from the pushed tag, so a tag supplies both the job and the keys it trusts. Describe what the job guarantees and name the limit. Trim the verify-tag comment to the part that isn't already obvious from the command: why no separate annotated-tag check is needed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Code review by qodo was updated up to the latest commit 6a3dca8 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Release tags stopped being verifiable.
tag-release.ymlcreated them withgit tag "$tag" "$SHA"— a lightweight tag, which has no tag object to carry a signature — so since v11.18.0 verification fails outright:That breaks distro packagers who verify the tag before building, forcing them to drop verification or pin a raw commit SHA.
Signing the tag inside the workflow would restore
git verify-tag, but not the property that makes it worth verifying: the key would live in Actions secrets, inside the trust boundary the signature exists to attest independently of. So tags are now cut from a maintainer's machine, andrelease.ymlrefuses to publish from a tag it cannot verify against a committed maintainer key..github/workflows/tag-release.yml— the only thing in the repo that rangit tag.verify-release-tagjob that imports.github/release-keys/*.ascinto a throwaway keyring and runsgit verify-tag. Every publish path descends fromplan, andplannow descends from this job, so one edge gates all three products..github/release-keys/zkochan.ascas the initial release trust root.RELEASING.mdwith the manual procedure.release.ymlis otherwise unchanged: it still triggers on pushedv*.*.*/pnpr@*.*.*tags, so a maintainer-pushed tag starts a release exactly as the CI-pushed one did.Known limit, tracked in an open review thread. The gate blocks unsigned tags, but it is not a boundary against an actor who can already push arbitrary ones: a tag push runs the workflow file and checks out the tree from the pushed tag, so a tag supplies both the verifying job and the keys it trusts. Closing that requires a repository ruleset restricting who may create
v*andpnpr@*tags — repo settings, not something this PR can do.The release commit is also still merged through GitHub and keeps its web-flow signature, so the commit chain is not maintainer-signed end to end. Noted in
RELEASING.md.Related to #13578 (fixes the unsigned-tag regression; the GitHub-signed release commit remains).
Squash Commit Body
Checklist
already linked to it solves it.
Written by an agent (Claude Code, claude-opus-5).
Summary by CodeRabbit
Documentation
Chores