Skip to content

ci: create release tags by hand, signed - #13607

Merged
zkochan merged 6 commits into
mainfrom
fix-13578
Aug 3, 2026
Merged

zkochan merged 6 commits into
mainfrom
fix-13578

Conversation

@zkochan

@zkochan zkochan commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Release tags stopped being verifiable. tag-release.yml created them with git tag "$tag" "$SHA" — a lightweight tag, which has no tag object to carry a signature — so since v11.18.0 verification fails outright:

$ git verify-tag v11.18.0
error: v11.18.0: cannot verify a non-tag object of type commit.

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, and release.yml refuses to publish from a tag it cannot verify against a committed maintainer key.

  • Delete .github/workflows/tag-release.yml — the only thing in the repo that ran git tag.
  • Add a verify-release-tag job that imports .github/release-keys/*.asc into a throwaway keyring and runs git verify-tag. Every publish path descends from plan, and plan now descends from this job, so one edge gates all three products.
  • Commit .github/release-keys/zkochan.asc as the initial release trust root.
  • Add RELEASING.md with the manual procedure.

release.yml is otherwise unchanged: it still triggers on pushed v*.*.* / 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* and pnpr@* 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

Version tags were created in CI 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 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 meant to attest independently of. Cut tags from a
maintainer machine instead, and have release.yml verify the tag before any
publish job runs.

verify-release-tag imports the public keys committed under .github/release-keys
into a throwaway GNUPGHOME and runs `git verify-tag` on the pushed tag. Every
publish path descends from `plan` and `plan` descends from that job, so one edge
gates all three products. Verified against a 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 so verification cannot succeed against a key already 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 verify_ts_release
dispatch exits from inside the step rather than a job-level `if`, since a skipped
job skips everything that needs it.

This guards against unsigned tags, not against an actor who can push arbitrary
ones: a tag push runs the workflow file and checks out the tree from the pushed
tag. Restricting creation of v* and pnpr@* tags is a repository ruleset concern.

RELEASING.md documents the manual procedure: tag an explicit commit, verify every
tag before pushing, and retag at the fixed commit to retry a failed release.

Related to pnpm/pnpm#13578

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • Updated the documentation if needed.

Written by an agent (Claude Code, claude-opus-5).

Summary by CodeRabbit

  • Documentation

    • Updated release instructions for maintainer-created, signed annotated tags per product.
    • Added guidance on verification, signing, parallel publishing, reruns, immutable packages, partial releases, recovery, and tag restrictions.
  • Chores

    • Replaced automatic tagging with verified signed tags.
    • Added trusted-key checks before publishing releases.
    • Updated release automation to support the revised process.

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]>
Copilot AI review requested due to automatic review settings August 3, 2026 12:22

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 35ad1fb5-794b-4478-8d92-8291c7e17d82

📥 Commits

Reviewing files that changed from the base of the PR and between b08176f and 6a3dca8.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The 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. RELEASING.md documents tagging, verification, reruns, recovery, and signing setup.

Changes

Release process

Layer / File(s) Summary
Manual release tagging
.github/workflows/create-release-pr.yml, .github/workflows/release.yml, RELEASING.md
Workflow messages and release instructions require maintainers to create, verify, and push signed product tags. The documentation covers product-specific releases, reruns, and partial-release recovery.
Trusted release-tag verification
.github/workflows/release.yml, .github/release-keys/zkochan.asc, RELEASING.md
The release workflow verifies signed annotated tags with an isolated GPG keyring and committed trusted keys. Invalid or untrusted tags stop publishing.
Signing guidance
RELEASING.md
The documentation adds PGP and Git signing setup and describes GitHub web-flow signatures on release commits.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • pnpm/pnpm#13128: Modifies the release workflow and release-tag verification logic.
  • pnpm/pnpm#13514: Changes the automated release and tagging process that this PR replaces.

Suggested reviewers: copilot, qodo-code-review

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
Loading
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13578

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

CI: stop auto-tagging; require maintainer-signed release tags

🐞 Bug fix 📝 Documentation ⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Remove CI-created lightweight tags to restore verifiable signed release tags
• Update release PR + release workflow docs to reflect manual per-product tagging
• Document manual, signed annotated tagging procedure in new RELEASING.md
Diagram

sequenceDiagram
  participant M as Maintainer
  participant CRP as create-release-pr.yml
  participant R as GitHub Repo
  participant L as Local git
  participant REL as release.yml
  participant N as npm Registry

  M->>CRP: workflow_dispatch (create release PR)
  CRP->>R: push release-pr/<base> + open PR
  M->>R: review & merge PR
  M->>L: fetch + checkout merge commit
  L->>R: push signed annotated tag (v* / pnpr@*)
  R-->>REL: trigger on tag push
  REL->>N: publish released product (if unpublished)
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Sign tags in CI (GPG/SSH key in Actions secrets)
  • ➕ Keeps fully automated post-merge releases
  • ➕ No maintainer bottleneck for cutting tags
  • ➖ Places the signing key inside GitHub/Actions trust boundary, weakening the threat model that tag signatures are meant to provide
  • ➖ Increases blast radius if org or CI secrets are compromised
2. Adopt Sigstore/SLSA-style provenance for releases
  • ➕ Avoids long-lived secret keys; can leverage OIDC-based signing
  • ➕ Provides stronger artifact-level attestations for consumers
  • ➖ Does not satisfy downstream workflows that require git verify-tag on a signed git tag
  • ➖ Higher migration and tooling burden for packagers and maintainers
3. Keep auto-tagging but create annotated (unsigned) tags and require external verification
  • ➕ Preserves automation and avoids secrets for signing
  • ➕ Avoids breaking release.yml triggers
  • ➖ Still fails git verify-tag expectations for consumers who require signed tags
  • ➖ Maintains ambiguity about provenance/trust without a cryptographic tag signature

Recommendation: Proceed with this PR’s approach: removing CI tag creation and requiring maintainer-created signed annotated tags best matches the stated trust boundary (signing key never enters Actions). Consider a follow-up guardrail to reduce the new “silent block” failure mode (e.g., a scheduled check that detects merged release PRs without corresponding version tags) and an audit of remaining UPDATE_LOCKFILE_TOKEN usage.

Files changed (3) +85 / -2

Documentation (1) +82 / -0
RELEASING.mdAdd manual release tagging and verification guide +82/-0

Add manual release tagging and verification guide

• Introduces a maintainer-facing release procedure documenting per-product manifests, required tag prefixes, and commands to create signed annotated tags. Adds an explicit 'git verify-tag' step before pushing and notes the current gap that release commits remain GitHub web-flow signed.

RELEASING.md

Other (2) +3 / -2
create-release-pr.ymlUpdate release PR body to reference manual signed tagging +1/-1

Update release PR body to reference manual signed tagging

• Rewords the auto-generated PR body to remove the claim that CI auto-tags products. Directs maintainers to push signed tags after merge and points to RELEASING.md for the procedure.

.github/workflows/create-release-pr.yml

release.ymlAdjust concurrency rationale comment for manual signed tags +2/-1

Adjust concurrency rationale comment for manual signed tags

• Updates the top-level comment describing how multi-product releases are triggered, clarifying that tags are pushed by hand as signed annotated tags from a maintainer machine. The workflow triggers and behavior remain unchanged.

.github/workflows/release.yml

@greptile-apps

greptile-apps Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The 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

Comment thread RELEASING.md Resolved
@qodo-code-review

qodo-code-review Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Action required

1. Retag may hit wrong commit ✓ Resolved 🐞 Bug ⛨ Security
Description
The rerun instructions recreate the version tag without specifying the intended commit (or requiring
an explicit checkout/verification), so git tag -s ... will sign whatever HEAD is and can trigger
a release for unintended code under the same version tag.
Code

RELEASING.md[R66-69]

+git push origin :refs/tags/v<version>          # drop the remote tag
+git tag -d v<version>
+git tag -s v<version> -m "v<version>"          # re-sign at the fixed commit
+git push origin v<version>
Relevance

●●● Strong

Team previously added safeguards against tagging wrong targets/version drift in release flows (PRs
#12911, #13004).

PR-#12911
PR-#13004

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
RELEASING.md shows the retag sequence and claims it re-signs at the fixed commit, but the `git tag
-s command doesn’t name a commit (defaults to HEAD`). release.yml is triggered by tag pushes, so
an incorrect HEAD tag will start a real release run.

RELEASING.md[62-70]
.github/workflows/release.yml[6-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The rerun instructions imply re-signing the tag at the fixed commit, but the shown commands don’t actually bind the tag to a specific commit SHA (or re-checkout it), so the recreated tag will point at whatever `HEAD` happens to be.

### Issue Context
`release.yml` triggers on pushed tags; recreating/pushing a tag that accidentally points at the wrong commit can publish unintended code under an existing version.

### Fix Focus Areas
- RELEASING.md[62-70]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Revoked key still trusted 🐞 Bug ⛨ Security ⭐ New
Description
verify-release-tag describes .github/release-keys as the “release trust root”, but it imports
keys from the checked-out tag commit, so a key removed/rotated on the default branch can still be
trusted when a new release tag targets an older commit that still contains the removed key. This
weakens key rotation/revocation: an actor who can create/move eligible tags and still possesses the
retired/compromised private key can pass verification for those historical commits.
Code

.github/workflows/release.yml[R67-70]

+  # This guards against an unsigned tag, not against an actor who can push an
+  # arbitrary one. A tag push runs the workflow file and checks out the tree from
+  # the pushed tag, so a tag supplies both this job and the keys it trusts.
+  # Restricting who may create `v*` and `pnpr@*` tags is a repository ruleset
Relevance

●● Moderate

Team often accepts release/security hardening and key-rotation work, but no prior review evidence on
tag-sourced trust roots.

PR-#12292
PR-#12295
PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow checks out the event ref and then imports keys=(.github/release-keys/*.asc) from the
workspace before running git verify-tag. Because the key set is taken from whatever commit is
checked out, removing a key from the current branch does not automatically remove it from older
commits, so new tags targeting those commits can still verify under the removed key.

.github/workflows/release.yml[63-71]
.github/workflows/release.yml[79-86]
.github/workflows/release.yml[115-121]
RELEASING.md[119-132]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`verify-release-tag` imports trusted signing keys from `.github/release-keys` in the checked-out workspace, which (on tag-triggered runs) corresponds to the tagged commit. This makes the effective trust root vary by commit and allows removed keys to remain trusted for new tag pushes that point to older commits.

### Issue Context
The workflow’s own comment notes that a tag supplies both the workflow and the keys it trusts, but `RELEASING.md` frames `.github/release-keys` as the “trust root” for adding/rotating maintainers. For revocation/rotation to have the intended effect for *new* releases, verification should use a key set from a stable, protected ref (e.g., default branch HEAD), not from the tag’s commit.

### Fix Focus Areas
- .github/workflows/release.yml[79-86]
- .github/workflows/release.yml[115-121]

### Implementation sketch
- Checkout (or fetch) a protected ref (e.g. `refs/heads/main` or the repo default branch) to read `.github/release-keys/*`.
- Separately fetch the pushed tag ref/object (e.g. `git fetch --force origin "refs/tags/$TAG:refs/tags/$TAG"`) so `git verify-tag "$TAG"` can run.
- Keep `GNUPGHOME` isolated as today; only change where the `*.asc` files are sourced from.
- Optionally update the comment to explicitly state whether the trust root is intended to be “current default branch” vs “as of the tagged commit”.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Historical comment in release.yml ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
New documentation/comments for release-tag enforcement use historical phrasing (e.g., referencing a
removed workflow that "auto-created tags" or that something "used to" create tags) instead of
describing the current behavior and constraints in present tense. This can become stale or
misleading as tooling and implementation details evolve, violating the requirement to document
current invariants.
Code

.github/workflows/release.yml[R63-66]

+  # Removing the workflow that auto-created tags stops CI from making unsigned
+  # ones, but nothing would stop a compromised workflow or a token with tag
+  # scope from pushing a `v*.*.*` tag and triggering a publish. This job is what
+  # makes the signed-tag rule enforced rather than merely documented: every
Relevance

●●● Strong

Team previously accepted rewriting workflow comments to avoid historical framing (no “used
to”/incident narrative).

PR-#13072
PR-#13559
PR-#13004

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 forbids historical/temporal phrasing in comments/docs and requires
describing current behavior; the cited additions include language about a removed workflow and
phrases like "used to create tags," which explicitly refer to past implementations rather than
stating the present-day enforcement mechanism and invariant. Because the text anchors the rationale
to what previously existed, it risks inaccuracy when the implementation changes, directly triggering
the compliance rule.

Rule 772199: Comments must describe current behavior, not historical implementations
.github/workflows/release.yml[63-69]
RELEASING.md[102-105]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Update the newly added release-tag enforcement documentation/comments to remove historical/temporal phrasing (e.g., references to removed workflows or "used to" language) and instead describe the current behavior, constraints, and invariants in present tense.

## Issue Context
PR Compliance ID 772199 requires that comments and documentation in the diff describe current behavior/constraints and avoid references to past/removed implementations (e.g., "used to," "previously," or "removing the workflow that..."). The current wording ties the rationale to a prior tag-automation mechanism, which can become stale or misleading as tooling evolves.

## Fix Focus Areas
- .github/workflows/release.yml[63-69]
- RELEASING.md[102-105]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


4. Pnpr retag flow missing ✓ Resolved 🐞 Bug ⚙ Maintainability
Description
The rerun/partial-release section only documents deleting/recreating v<version> tags, but the repo
also releases from pnpr@<version> tags; maintainers retrying pnpr releases are not given the
correct tag/ref spelling for the delete/recreate/push sequence.
Code

RELEASING.md[R66-68]

+git push origin :refs/tags/v<version>          # drop the remote tag
+git tag -d v<version>
+git tag -s v<version> -m "v<version>"          # re-sign at the fixed commit
Relevance

●●● Strong

Repo treats pnpr@ tags as first-class release triggers; release/tag docs/workflows explicitly
include pnpr@ (PRs #13004, #12949).

PR-#13004
PR-#12949

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
RELEASING.md’s rerun commands only reference v<version> (including deleting
refs/tags/v<version>), while release.yml explicitly triggers on both v*.*.* and pnpr@*.*.*
tags.

RELEASING.md[62-70]
.github/workflows/release.yml[12-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The rerun example only covers `v<version>` tags and doesn’t show the corresponding commands for pnpr’s `pnpr@<version>` tags.

### Issue Context
`release.yml` is triggered by both `v*.*.*` and `pnpr@*.*.*` tag pushes; rerun guidance should cover both namespaces to avoid operator error during partial-release recovery.

### Fix Focus Areas
- RELEASING.md[62-70]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (3)
5. Changed-products tagging unclear ✓ Resolved 🐞 Bug ☼ Reliability
Description
RELEASING.md says to tag only products whose version changed, but the snippet lists all three tag
commands without showing how to determine which products changed or how to safely skip a tag that
already exists. This ambiguity can cause operational failures (e.g., attempting to create an
already-existing tag) or accidental tagging of products not intended for that release.
Code

RELEASING.md[R31-34]

+   # Tag only the products whose version actually changed this release.
+   git tag -s "v$(jq -r .version pnpm11/pnpm/package.json)" -m "v$(jq -r .version pnpm11/pnpm/package.json)"
+   git tag -s "v$(jq -r .version pnpm/npm/pnpm/package.json)" -m "v$(jq -r .version pnpm/npm/pnpm/package.json)"
+   git tag -s "pnpr@$(jq -r .version pnpr/npm/pnpr/package.json)" -m "pnpr@$(jq -r .version pnpr/npm/pnpr/package.json)"
Relevance

●●● Strong

Team accepts release-process hardening/clarity; previous tagging flow skipped existing tags (PR
#13004).

PR-#13004
PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The documentation instructs maintainers to tag only changed products, but immediately provides three
tag-creation commands with no conditional logic or selection criteria, leaving the reader without a
concrete way to follow the instruction safely.

RELEASING.md[17-35]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The manual tagging instructions state “Tag only the products whose version actually changed this release” but provide an unconditional-looking list of three `git tag -s ...` commands. The doc should either explain how to decide which commands to run, or provide a guarded snippet that checks whether the tag already exists / whether the product was released.

## Issue Context
This PR intentionally removes CI auto-tagging; the manual procedure needs to be unambiguous to avoid stalled or incorrect releases.

## Fix Focus Areas
- RELEASING.md[17-35]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Local verify can mislead 🐞 Bug ⛨ Security
Description
RELEASING.md instructs maintainers to run git verify-tag locally, but that verification can
succeed using keys present in the maintainer’s personal GPG keyring even if the signing key is not
committed under .github/release-keys/, causing release.yml’s verify-release-tag gate to fail
after the tag is pushed. This can block releases unexpectedly despite the maintainer having
“verified” the tag locally.
Code

RELEASING.md[R53-56]

+4. Verify **every** tag you just created before pushing — a multi-product
+   release must not leave one of its tags unchecked, and a pnpr-only release
+   has no `v<version>` tag at all. `release.yml` rejects an unsigned tag
+   anyway, but catching it here saves a failed run:
Relevance

●● Moderate

Team accepts some workflow/doc clarity edits (PR13004) but also rejects “misleading comment” doc
tweaks (PR13043).

PR-#13004
PR-#13043

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The docs’ suggested verification (git verify-tag) does not constrain trust to repo-committed keys,
but CI explicitly does by creating a fresh GNUPGHOME and importing only .github/release-keys/*.asc
before calling git verify-tag, so local success can still fail in CI if the signing key is not in
that directory.

RELEASING.md[53-60]
.github/workflows/release.yml[105-128]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`RELEASING.md` recommends `git verify-tag` on the maintainer’s machine, but that uses the maintainer’s normal GPG trust/keyring and does **not** mirror CI’s enforcement (which only trusts keys committed in `.github/release-keys/`). This can produce a false sense of safety: local verification passes, then CI rejects the pushed tag.

### Issue Context
CI (`release.yml` → `verify-release-tag`) creates an isolated `GNUPGHOME` and imports only `.github/release-keys/*.asc` before running `git verify-tag`, so “valid signature” is not sufficient—signature must validate against the repo-committed trust root.

### Fix Focus Areas
- RELEASING.md[53-60]

### Suggested change
Update step 4 to either:
- explicitly warn that local `git verify-tag` must be done against a keyring containing only `.github/release-keys/*.asc`, and/or
- provide a snippet that mirrors CI, e.g.:

```bash
GNUPGHOME="$(mktemp -d)"; export GNUPGHOME
chmod 700 "$GNUPGHOME"
trap 'rm -rf "$GNUPGHOME"' EXIT

gpg --batch --quiet --import .github/release-keys/*.asc
for tag in "${tags[@]}"; do git verify-tag "$tag"; done
```

This prevents “passes locally, fails in CI” releases when a maintainer’s signing key isn’t (yet) in `.github/release-keys/`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


7. Unverified pnpr tag risk ✓ Resolved 🐞 Bug ⛨ Security
Description
RELEASING.md only demonstrates git verify-tag v<version>, even though the process may also push
pnpr@<version> (and potentially two different v<version> tags when TS and Rust versions differ).
This can lead to pushing a tag that triggers release.yml without having verified its signature,
undermining the intent of the signed-tag process.
Code

RELEASING.md[R44-46]

+   ```bash
+   git verify-tag v<version>
+   ```
Relevance

●● Moderate

No direct precedent on verifying pnpr@ tags in docs; release security hardening sometimes accepted
(PR #13072).

PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The documented tagging step creates both v... and pnpr@... tags, but the verification step only
shows verifying a v... tag; meanwhile release.yml triggers on both tag namespaces, so an
unverified pnpr@... tag still starts a release run.

RELEASING.md[17-35]
RELEASING.md[41-53]
.github/workflows/release.yml[12-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`RELEASING.md` shows verifying only `v<version>`, but releases can involve multiple tags (`v...` for pnpm/pacquet and `pnpr@...` for pnpr). This can cause maintainers to verify one tag and push others unverified.

## Issue Context
The release workflow triggers on both `v*.*.*` and `pnpr@*.*.*` tag patterns.

## Fix Focus Areas
- RELEASING.md[41-53]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

8. Redundant checkout on dispatch 🐞 Bug ➹ Performance
Description
verify-release-tag performs an Actions checkout (with tag fetching) even for branch-based
workflow_dispatch runs where the next step immediately exits because GITHUB_REF is not a tag.
This adds unnecessary runner/network work to the verify_ts_release dispatch path.
Code

.github/workflows/release.yml[R77-84]

+      - name: Checkout
+        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          # A tag push checks out the commit; the tag *object* carrying the
+          # signature is a separate object that only comes down with the tag
+          # refs, so verification would have nothing to read without this.
+          fetch-tags: true
+          persist-credentials: false
Relevance

●● Moderate

No clear precedent for optimizing away checkout; similar dispatch/tag-guard optimizations were
rejected in release.yml.

PR-#13128

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The job performs actions/checkout first, but the non-tag guard (which exits 0 for branch
dispatches) is only evaluated in the subsequent run step, so dispatch runs do the checkout even
though no verification is performed.

.github/workflows/release.yml[70-103]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`verify-release-tag` checks out the repository before it determines whether the workflow run is actually tag-based. For `workflow_dispatch` runs from a branch (the `verify_ts_release` path), the subsequent shell step exits successfully without verifying anything, making the checkout/tag-fetch wasted work.

### Issue Context
This job is intentionally **not** job-skipped (to avoid skipping `plan`), but its expensive steps can still be step-gated.

### Fix Focus Areas
- .github/workflows/release.yml[77-103]

### Suggested change
Add a first step that short-circuits non-tag refs *before* checkout, and gate checkout/verification steps with the same condition.

Example:
```yaml
     - name: Short-circuit non-tag runs
       if: ${{ !startsWith(github.ref, 'refs/tags/') }}
       run: |
         echo "${GITHUB_REF} is not a tag; nothing to verify and nothing will publish."
         exit 0

     - name: Checkout
       if: ${{ startsWith(github.ref, 'refs/tags/') }}
       uses: actions/checkout@...
       with:
         fetch-tags: true
         persist-credentials: false

     - name: Verify the tag signature
       if: ${{ startsWith(github.ref, 'refs/tags/') }}
       ...
```
This preserves the current dependency graph (job succeeds for dispatch) while avoiding unnecessary checkout work.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Previous review results

Review updated until commit 6a3dca8

Results up to commit bf3135f ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Changed-products tagging unclear ✓ Resolved 🐞 Bug ☼ Reliability
Description
RELEASING.md says to tag only products whose version changed, but the snippet lists all three tag
commands without showing how to determine which products changed or how to safely skip a tag that
already exists. This ambiguity can cause operational failures (e.g., attempting to create an
already-existing tag) or accidental tagging of products not intended for that release.
Code

RELEASING.md[R31-34]

+   # Tag only the products whose version actually changed this release.
+   git tag -s "v$(jq -r .version pnpm11/pnpm/package.json)" -m "v$(jq -r .version pnpm11/pnpm/package.json)"
+   git tag -s "v$(jq -r .version pnpm/npm/pnpm/package.json)" -m "v$(jq -r .version pnpm/npm/pnpm/package.json)"
+   git tag -s "pnpr@$(jq -r .version pnpr/npm/pnpr/package.json)" -m "pnpr@$(jq -r .version pnpr/npm/pnpr/package.json)"
Relevance

●●● Strong

Team accepts release-process hardening/clarity; previous tagging flow skipped existing tags (PR
#13004).

PR-#13004
PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The documentation instructs maintainers to tag only changed products, but immediately provides three
tag-creation commands with no conditional logic or selection criteria, leaving the reader without a
concrete way to follow the instruction safely.

RELEASING.md[17-35]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The manual tagging instructions state “Tag only the products whose version actually changed this release” but provide an unconditional-looking list of three `git tag -s ...` commands. The doc should either explain how to decide which commands to run, or provide a guarded snippet that checks whether the tag already exists / whether the product was released.

## Issue Context
This PR intentionally removes CI auto-tagging; the manual procedure needs to be unambiguous to avoid stalled or incorrect releases.

## Fix Focus Areas
- RELEASING.md[17-35]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Unverified pnpr tag risk ✓ Resolved 🐞 Bug ⛨ Security
Description
RELEASING.md only demonstrates git verify-tag v<version>, even though the process may also push
pnpr@<version> (and potentially two different v<version> tags when TS and Rust versions differ).
This can lead to pushing a tag that triggers release.yml without having verified its signature,
undermining the intent of the signed-tag process.
Code

RELEASING.md[R44-46]

+   ```bash
+   git verify-tag v<version>
+   ```
Relevance

●● Moderate

No direct precedent on verifying pnpr@ tags in docs; release security hardening sometimes accepted
(PR #13072).

PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The documented tagging step creates both v... and pnpr@... tags, but the verification step only
shows verifying a v... tag; meanwhile release.yml triggers on both tag namespaces, so an
unverified pnpr@... tag still starts a release run.

RELEASING.md[17-35]
RELEASING.md[41-53]
.github/workflows/release.yml[12-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`RELEASING.md` shows verifying only `v<version>`, but releases can involve multiple tags (`v...` for pnpm/pacquet and `pnpr@...` for pnpr). This can cause maintainers to verify one tag and push others unverified.

## Issue Context
The release workflow triggers on both `v*.*.*` and `pnpr@*.*.*` tag patterns.

## Fix Focus Areas
- RELEASING.md[41-53]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit 8fad4a6 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. Retag may hit wrong commit ✓ Resolved 🐞 Bug ⛨ Security
Description
The rerun instructions recreate the version tag without specifying the intended commit (or requiring
an explicit checkout/verification), so git tag -s ... will sign whatever HEAD is and can trigger
a release for unintended code under the same version tag.
Code

RELEASING.md[R66-69]

+git push origin :refs/tags/v<version>          # drop the remote tag
+git tag -d v<version>
+git tag -s v<version> -m "v<version>"          # re-sign at the fixed commit
+git push origin v<version>
Relevance

●●● Strong

Team previously added safeguards against tagging wrong targets/version drift in release flows (PRs
#12911, #13004).

PR-#12911
PR-#13004

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
RELEASING.md shows the retag sequence and claims it re-signs at the fixed commit, but the `git tag
-s command doesn’t name a commit (defaults to HEAD`). release.yml is triggered by tag pushes, so
an incorrect HEAD tag will start a real release run.

RELEASING.md[62-70]
.github/workflows/release.yml[6-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The rerun instructions imply re-signing the tag at the fixed commit, but the shown commands don’t actually bind the tag to a specific commit SHA (or re-checkout it), so the recreated tag will point at whatever `HEAD` happens to be.

### Issue Context
`release.yml` triggers on pushed tags; recreating/pushing a tag that accidentally points at the wrong commit can publish unintended code under an existing version.

### Fix Focus Areas
- RELEASING.md[62-70]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended
2. Pnpr retag flow missing ✓ Resolved 🐞 Bug ⚙ Maintainability
Description
The rerun/partial-release section only documents deleting/recreating v<version> tags, but the repo
also releases from pnpr@<version> tags; maintainers retrying pnpr releases are not given the
correct tag/ref spelling for the delete/recreate/push sequence.
Code

RELEASING.md[R66-68]

+git push origin :refs/tags/v<version>          # drop the remote tag
+git tag -d v<version>
+git tag -s v<version> -m "v<version>"          # re-sign at the fixed commit
Relevance

●●● Strong

Repo treats pnpr@ tags as first-class release triggers; release/tag docs/workflows explicitly
include pnpr@ (PRs #13004, #12949).

PR-#13004
PR-#12949

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
RELEASING.md’s rerun commands only reference v<version> (including deleting
refs/tags/v<version>), while release.yml explicitly triggers on both v*.*.* and pnpr@*.*.*
tags.

RELEASING.md[62-70]
.github/workflows/release.yml[12-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The rerun example only covers `v<version>` tags and doesn’t show the corresponding commands for pnpr’s `pnpr@<version>` tags.

### Issue Context
`release.yml` is triggered by both `v*.*.*` and `pnpr@*.*.*` tag pushes; rerun guidance should cover both namespaces to avoid operator error during partial-release recovery.

### Fix Focus Areas
- RELEASING.md[62-70]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit 986b65a ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Historical comment in release.yml ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
New documentation/comments for release-tag enforcement use historical phrasing (e.g., referencing a
removed workflow that "auto-created tags" or that something "used to" create tags) instead of
describing the current behavior and constraints in present tense. This can become stale or
misleading as tooling and implementation details evolve, violating the requirement to document
current invariants.
Code

.github/workflows/release.yml[R63-66]

+  # Removing the workflow that auto-created tags stops CI from making unsigned
+  # ones, but nothing would stop a compromised workflow or a token with tag
+  # scope from pushing a `v*.*.*` tag and triggering a publish. This job is what
+  # makes the signed-tag rule enforced rather than merely documented: every
Relevance

●●● Strong

Team previously accepted rewriting workflow comments to avoid historical framing (no “used
to”/incident narrative).

PR-#13072
PR-#13559
PR-#13004

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 forbids historical/temporal phrasing in comments/docs and requires
describing current behavior; the cited additions include language about a removed workflow and
phrases like "used to create tags," which explicitly refer to past implementations rather than
stating the present-day enforcement mechanism and invariant. Because the text anchors the rationale
to what previously existed, it risks inaccuracy when the implementation changes, directly triggering
the compliance rule.

Rule 772199: Comments must describe current behavior, not historical implementations
.github/workflows/release.yml[63-69]
RELEASING.md[102-105]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Update the newly added release-tag enforcement documentation/comments to remove historical/temporal phrasing (e.g., references to removed workflows or "used to" language) and instead describe the current behavior, constraints, and invariants in present tense.

## Issue Context
PR Compliance ID 772199 requires that comments and documentation in the diff describe current behavior/constraints and avoid references to past/removed implementations (e.g., "used to," "previously," or "removing the workflow that..."). The current wording ties the rationale to a prior tag-automation mechanism, which can become stale or misleading as tooling evolves.

## Fix Focus Areas
- .github/workflows/release.yml[63-69]
- RELEASING.md[102-105]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational
2. Redundant checkout on dispatch 🐞 Bug ➹ Performance
Description
verify-release-tag performs an Actions checkout (with tag fetching) even for branch-based
workflow_dispatch runs where the next step immediately exits because GITHUB_REF is not a tag.
This adds unnecessary runner/network work to the verify_ts_release dispatch path.
Code

.github/workflows/release.yml[R77-84]

+      - name: Checkout
+        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          # A tag push checks out the commit; the tag *object* carrying the
+          # signature is a separate object that only comes down with the tag
+          # refs, so verification would have nothing to read without this.
+          fetch-tags: true
+          persist-credentials: false
Relevance

●● Moderate

No clear precedent for optimizing away checkout; similar dispatch/tag-guard optimizations were
rejected in release.yml.

PR-#13128

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The job performs actions/checkout first, but the non-tag guard (which exits 0 for branch
dispatches) is only evaluated in the subsequent run step, so dispatch runs do the checkout even
though no verification is performed.

.github/workflows/release.yml[70-103]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`verify-release-tag` checks out the repository before it determines whether the workflow run is actually tag-based. For `workflow_dispatch` runs from a branch (the `verify_ts_release` path), the subsequent shell step exits successfully without verifying anything, making the checkout/tag-fetch wasted work.

### Issue Context
This job is intentionally **not** job-skipped (to avoid skipping `plan`), but its expensive steps can still be step-gated.

### Fix Focus Areas
- .github/workflows/release.yml[77-103]

### Suggested change
Add a first step that short-circuits non-tag refs *before* checkout, and gate checkout/verification steps with the same condition.

Example:
```yaml
     - name: Short-circuit non-tag runs
       if: ${{ !startsWith(github.ref, 'refs/tags/') }}
       run: |
         echo "${GITHUB_REF} is not a tag; nothing to verify and nothing will publish."
         exit 0

     - name: Checkout
       if: ${{ startsWith(github.ref, 'refs/tags/') }}
       uses: actions/checkout@...
       with:
         fetch-tags: true
         persist-credentials: false

     - name: Verify the tag signature
       if: ${{ startsWith(github.ref, 'refs/tags/') }}
       ...
```
This preserves the current dependency graph (job succeeds for dispatch) while avoiding unnecessary checkout work.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit b08176f ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Local verify can mislead 🐞 Bug ⛨ Security
Description
RELEASING.md instructs maintainers to run git verify-tag locally, but that verification can
succeed using keys present in the maintainer’s personal GPG keyring even if the signing key is not
committed under .github/release-keys/, causing release.yml’s verify-release-tag gate to fail
after the tag is pushed. This can block releases unexpectedly despite the maintainer having
“verified” the tag locally.
Code

RELEASING.md[R53-56]

+4. Verify **every** tag you just created before pushing — a multi-product
+   release must not leave one of its tags unchecked, and a pnpr-only release
+   has no `v<version>` tag at all. `release.yml` rejects an unsigned tag
+   anyway, but catching it here saves a failed run:
Relevance

●● Moderate

Team accepts some workflow/doc clarity edits (PR13004) but also rejects “misleading comment” doc
tweaks (PR13043).

PR-#13004
PR-#13043

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The docs’ suggested verification (git verify-tag) does not constrain trust to repo-committed keys,
but CI explicitly does by creating a fresh GNUPGHOME and importing only .github/release-keys/*.asc
before calling git verify-tag, so local success can still fail in CI if the signing key is not in
that directory.

RELEASING.md[53-60]
.github/workflows/release.yml[105-128]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`RELEASING.md` recommends `git verify-tag` on the maintainer’s machine, but that uses the maintainer’s normal GPG trust/keyring and does **not** mirror CI’s enforcement (which only trusts keys committed in `.github/release-keys/`). This can produce a false sense of safety: local verification passes, then CI rejects the pushed tag.

### Issue Context
CI (`release.yml` → `verify-release-tag`) creates an isolated `GNUPGHOME` and imports only `.github/release-keys/*.asc` before running `git verify-tag`, so “valid signature” is not sufficient—signature must validate against the repo-committed trust root.

### Fix Focus Areas
- RELEASING.md[53-60]

### Suggested change
Update step 4 to either:
- explicitly warn that local `git verify-tag` must be done against a keyring containing only `.github/release-keys/*.asc`, and/or
- provide a snippet that mirrors CI, e.g.:

```bash
GNUPGHOME="$(mktemp -d)"; export GNUPGHOME
chmod 700 "$GNUPGHOME"
trap 'rm -rf "$GNUPGHOME"' EXIT

gpg --batch --quiet --import .github/release-keys/*.asc
for tag in "${tags[@]}"; do git verify-tag "$tag"; done
```

This prevents “passes locally, fails in CI” releases when a maintainer’s signing key isn’t (yet) in `.github/release-keys/`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

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]>
Copilot AI review requested due to automatic review settings August 3, 2026 12:28

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai coderabbitai Bot 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 88728f1 and bf3135f.

📒 Files selected for processing (4)
  • .github/workflows/create-release-pr.yml
  • .github/workflows/release.yml
  • .github/workflows/tag-release.yml
  • RELEASING.md
💤 Files with no reviewable changes (1)
  • .github/workflows/tag-release.yml

Comment thread .github/workflows/create-release-pr.yml Resolved
Comment thread RELEASING.md Resolved
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]>
Comment thread RELEASING.md Resolved
Copilot AI review requested due to automatic review settings August 3, 2026 12:30

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Comment thread RELEASING.md Resolved
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 8fad4a6

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai coderabbitai Bot 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between bf3135f and 8fad4a6.

📒 Files selected for processing (1)
  • RELEASING.md

Comment thread RELEASING.md Resolved
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]>
Copilot AI review requested due to automatic review settings August 3, 2026 12:54

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai coderabbitai Bot 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.

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 win

Use distinct release tags for the two pnpm CLIs.

RELEASING.md documents two v<version> tags, but release.yml treats a v<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 second git tag -s already 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 win

Remove 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

📥 Commits

Reviewing files that changed from the base of the PR and between 8fad4a6 and 986b65a.

📒 Files selected for processing (3)
  • .github/release-keys/zkochan.asc
  • .github/workflows/release.yml
  • RELEASING.md

Comment thread .github/workflows/release.yml Resolved
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 986b65a

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

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]>
Copilot AI review requested due to automatic review settings August 3, 2026 13:14

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 3, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit b08176f

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

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]>
Copilot AI review requested due to automatic review settings August 3, 2026 13:21

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 6a3dca8

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit 290bb5b into main Aug 3, 2026
25 checks passed
@zkochan
zkochan deleted the fix-13578 branch August 3, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants