Embed TeamIdentifier in macOS CodeDirectory
Merged
JE
8mo ago+166+166+012345678901234567890123456789-20-20-01234567890123456789
Summary
- Replace GoReleaser's built-in notarize (broken
goreleaser/quillfork) with directanchore/quillv0.7.1 CLI calls that correctly populate theTeamIdentifierfield 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-verifyjob 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_TEMPwithumask 077; quill added to$GITHUB_PATHexplicitly - Password passed via
QUILL_SIGN_PASSWORDenv 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-releasepasses locally (hook no-ops without quill/certs) -
goreleaser checkvalidates config -
actionlintpasses on release workflow -
bash -n scripts/sign-darwin.shpasses - First release on this branch: verify
codesign -dv --verbose=4 basecamp 2>&1 | grep TeamIdentifierreturns2WNYUYRS7G - Verify
macos-verifyjob passes in release workflow - Verify notarization accepted via
spctl -a -vvv -t install basecamp