Skip to content

ci: repair release signing - #363

Merged
thegdsks merged 3 commits into
mainfrom
release/signing-2026-12-03
Dec 3, 2026
Merged

thegdsks merged 3 commits into
mainfrom
release/signing-2026-12-03

Conversation

@thegdsks

@thegdsks thegdsks commented Dec 3, 2026

Copy link
Copy Markdown
Member

Problem

release.yml has failed on every tag from v2.10.0 to v2.13.0. cosign-installer v4 installs cosign v3, which rejects --output-signature / --output-certificate without --bundle (must specify --bundle with --new-bundle-format).

Changes

  • .goreleaser.yml: sign with --bundle, one <asset>.sigstore.json per artifact; drop COSIGN_EXPERIMENTAL; update the release notes footer.
  • release.yml: add discussions: write. discussion_category_name was added after the last green release, so publishing with it has never run.
  • New release-check workflow and scripts/release-smoke.sh: goreleaser snapshot with real syft, the configured cosign args signed with a throwaway key (no Fulcio, Rekor or OIDC), bundle and checksum verification, a tamper check, and a tool pin match against release.yml. Runs on PRs touching the release config, weekly and on demand.
  • docs/INSTALL.md, docs/RELEASING.md: bundle verification commands for v2.14.0 and later. The v2.8.0 / v2.9.0 commands stay.

Verified locally

  • Smoke test passes with cosign v3.1.5, syft v1.54.1, goreleaser 2.20.2, with HTTP(S) proxied to a dead port.
  • Same script on the main config fails with the CI error.
  • go mod tidy -diff clean and go test ./... passes on Go 1.26.0 (the release before hooks).
  • Documented v2.9.0 command still prints Verified OK on cosign v3 (deprecation warnings); gh attestation verify passes for the v2.9.0 tarball and SBOM.

Only a real tag can prove

  • Keyless signing (GitHub OIDC, Fulcio, Rekor) and the certificate identity in the docs.
  • Asset upload into the release that release-please already created, and the discussion link on publish.
  • The attestation step on the new run (same pinned SHA as the v2.9.0 release; its globs match one archive and one SBOM).

Notes

  • Merge this before chore(main): release 2.14.0 #354. The tag runs the workflow and config from the tagged commit.
  • goreleaser keeps an existing release body (release.mode defaults to keep-existing), so the footer with the verify command does not appear on release-please releases. Not changed here.
  • release-check is path filtered, so do not mark it as a required check.
  • v2.10.0 to v2.13.0 stay unsigned.

@thegdsks
thegdsks requested a review from a team as a code owner December 3, 2026 18:57
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thegdsks
thegdsks merged commit 584c4d7 into main Dec 3, 2026
14 checks passed
@thegdsks
thegdsks deleted the release/signing-2026-12-03 branch December 3, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant