Skip to content

fix(scripts): resolve the personal signing key from the repo and overwrite partial signatures - #3904

Open
MattDHill wants to merge 1 commit into
masterfrom
fix/manage-release-signingkey-from-repo
Open

fix(scripts): resolve the personal signing key from the repo and overwrite partial signatures#3904
MattDHill wants to merge 1 commit into
masterfrom
fix/manage-release-signingkey-from-repo

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Summary

  • cmd_sign and cmd_cosign resolve user.signingkey after enter_release_dir has cd'd into the release staging directory, so the repo-local key is never seen and the global one is used. With a global SSH signing key that is a .pub path, and gpg aborts with No secret key after writing the first Start9 signature. This happened cutting start-cli 2.0.0 today.
  • Read the key from $REPO_ROOT, and skip the personal signature when that repo signs with SSH (gpg.format = ssh), which gpg cannot use. The existing "skipping personal signature" warning covers that case.
  • Pass --yes to the detach-sign calls so re-running sign or cosign after a partial failure overwrites the half-written signatures/*.asc instead of stopping at gpg's overwrite prompt.

Verified by signing start-cli 2.0.0, start-tunnel 1.3.0 and start-registry 1.1.0 with the patched script.

🤖 Generated with Claude Code

…write partial signatures

`cmd_sign` and `cmd_cosign` read `user.signingkey` after `enter_release_dir`
has moved into the release staging directory, so a repo-local key is never
seen and the global one is used. With a global SSH signing key that is a
`.pub` path, and gpg aborts with "No secret key" after the first Start9
signature. Read the key from `$REPO_ROOT`, and skip the personal signature
when that repo signs with SSH, which gpg cannot use.

Pass `--yes` to the detach-sign calls so re-running `sign` or `cosign` after a
partial failure overwrites the half-written `signatures/*.asc` instead of
stopping at gpg's overwrite prompt.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@MattDHill MattDHill added the repo Repository maintenance label Sep 4, 2026
@MattDHill
MattDHill requested a review from dr-bonez September 4, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant