Port the release workflow from basecamp-cli

Merged
JE
3mo ago
+192-61

Stacked on #193.

What

  • test job at the tag SHA (fetch-depth: 0): make check-lint-lockstep fmt-check vet lint test tidy-check, TestSurfaceSnapshot, race, govulncheck, and the surface-compat check against PREV_TAG (moved out of the release job). release.sh will later push a release-prep commit before tagging, so the PR gate's SHA is not the release SHA. test.yml drops workflow_call.
  • release job: macOS secret preflight gated on github.repository == 'basecamp/hey-cli' with ::error::; "Resolve previous stable tag" → GORELEASER_PREVIOUS_TAG so stable notes diff against the last stable tag, not the last rc; attest v4.2.2 kept; Homebrew tap token via client-id.
  • macos-verify matrix (amd64/arm64): Team ID 2WNYUYRS7G, hardened-runtime flag; spctl is telemetry only.
  • sync-skills: stable-only, issues: write, notifies via scripts/notify-issue.sh --label skills-sync on this repo (label dedup, fails closed) instead of the inline title search against basecamp/skills.
  • aur-publish unchanged.
  • make test-release: snapshot with --skip=publish,sign, MACOS_/SM_ blanked.

Not ported on purpose: headless-probe (no hey equivalent), Windows signing (next PR, after SM_* land), nix-verify (Nix PR).

Verified

actionlint + zizmor clean, lockstep passes with both pinned steps, make test-release succeeds locally (10 SBOMs, checksums.txt).


Summary by cubic

Ports the release workflow from basecamp-cli and runs the gate against the exact tag SHA so we test what we ship. Previously the release reused the PR gate; now it runs a full suite at the tag, enforces macOS signing on the canonical repo, verifies macOS artifacts post-release, and diffs stable notes against the last stable tag.

  • Test (tag SHA): runs lint lockstep, fmt-check, vet, lint, unit tests, tidy-check, TestSurfaceSnapshot, race, govulncheck, and CLI surface-compat against the previous tag; test.yml drops workflow_call.
  • Release: generates a Homebrew tap token via GitHub App client-id, fails fast on basecamp/hey-cli when macOS signing secrets are missing, resolves GORELEASER_PREVIOUS_TAG to the last stable tag, and depends on Test and Security.
  • macOS verify: matrix (amd64/arm64) asserts Team ID 2WNYUYRS7G and hardened runtime; notarization check is advisory (telemetry only).
  • Skills sync: stable tags only; on failure, files an issue on this repo via scripts/notify-issue.sh --label skills-sync and tells operators to rerun failed jobs in the Release run.
  • Makefile: make test-release runs GoReleaser as a snapshot with signing disabled and skips SBOMs when syft is absent.
  • Not ported yet: Windows signing and Nix verify.

Rollout

  • Required on basecamp/hey-cli: MACOS_SIGN_P12, MACOS_SIGN_PASSWORD, MACOS_NOTARY_KEY, MACOS_NOTARY_KEY_ID, MACOS_NOTARY_ISSUER_ID, plus vars.RELEASE_CLIENT_ID and secrets.RELEASE_APP_PRIVATE_KEY.
  • Releases are supported only on the canonical repo; the workflow fails fast there if macOS signing secrets are missing.