Embed TeamIdentifier in macOS CodeDirectory

Merged
JE
8mo ago
+166-20

Summary

  • Replace GoReleaser's built-in notarize (broken goreleaser/quill fork) with direct anchore/quill v0.7.1 CLI calls that correctly populate the TeamIdentifier field in the CodeDirectory
  • Sign darwin binaries via GoReleaser build hook (before archiving), so archives, checksums, Homebrew cask, and Scoop manifests all see correctly signed binaries
  • Notarize separately after GoReleaser publishes (non-destructive for bare Mach-O)
  • Add post-release macos-verify job on a macOS runner that asserts TeamIdentifier and hardened runtime for both darwin/amd64 and darwin/arm64; notarization status is best-effort telemetry
  • Signing hook fails closed in CI (missing quill/certs/password = hard error) but skips silently in local dev
  • Credentials written to $RUNNER_TEMP with umask 077; quill added to $GITHUB_PATH explicitly
  • Password passed via QUILL_SIGN_PASSWORD env var (quill's native config, not a CLI flag); notarize uses --notary-* flag names

Fixes Help Scout #3270572064. Root cause: anchore/quill#147.
Follow-up: #393 tracks reverting when goreleaser/quill syncs the fix.

Test plan

  • make test-release passes locally (hook no-ops without quill/certs)
  • goreleaser check validates config
  • actionlint passes on release workflow
  • bash -n scripts/sign-darwin.sh passes
  • First release on this branch: verify codesign -dv --verbose=4 basecamp 2>&1 | grep TeamIdentifier returns 2WNYUYRS7G
  • Verify macos-verify job passes in release workflow
  • Verify notarization accepted via spctl -a -vvv -t install basecamp