ci: sign and notarize macos builds via rcodesign + dry-run#12
Merged
Conversation
Adds goreleaser notarize.macos block (cross-platform, uses rcodesign) gated on MACOS_SIGN_P12 being set. The release workflow now: - Pulls credentials from the "release" environment (5 secrets: MACOS_SIGN_P12, MACOS_SIGN_PASSWORD, MACOS_NOTARY_ISSUER_ID, MACOS_NOTARY_KEY_ID, MACOS_NOTARY_KEY). - Installs rcodesign on the runner. - Supports workflow_dispatch with a dry_run flag that runs --snapshot --skip=publish and uploads dist/ as an artifact, so signing+notarization can be exercised end-to-end without cutting a real release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires up macOS signing and notarization in the release pipeline using goreleaser's cross-platform
notarize.macosblock (backed byrcodesign, runs on Linux runners).notarizeblock in.goreleaser.yaml, gated onisEnvSet "MACOS_SIGN_P12"so local snapshots without secrets still work.release.ymlnow pulls credentials from thereleaseGitHub environment (5 secrets) and installsrcodesignbefore the goreleaser step.workflow_dispatchtrigger with adry_runboolean (default true) that runsgoreleaser release --snapshot --clean --skip=publishand uploadsdist/as a 7-day artifact. Lets us test the full pipeline (including signing/notarization on darwin builds) without burning a real release.How to test before merging
releaseenvironment secrets are scoped tomain, so the dry-run needs to run from main).dry_runchecked → run.releaseenvironment has required reviewers, approve the deployment.goreleaserjob — successful notarization showsrcodesignlines completing for each darwin artifact.dist-snapshotartifact, untar adarwin_arm64build, and verify:Notes
--snapshot, which uses a fake version like0.1.1-next-SNAPSHOT-abc123. Real publish path is unaffected.rcodesignis pinned to v0.27.0; bump as needed.releaseenvironment isn't configured yet, the goreleaser job will fail with an environment-not-found error — set it up first under Settings → Environments.🤖 Generated with Claude Code