Skip to content

chore(release): sign the macOS binaries in the release workflow - #31

Open
bobbyg603 wants to merge 3 commits into
mainfrom
chore/macos-signing
Open

bobbyg603 wants to merge 3 commits into
mainfrom
chore/macos-signing

Conversation

@bobbyg603

Copy link
Copy Markdown
Member

Turns on dist's macOS signing, so a release signs both macOS binaries with our Developer ID certificate and the hardened runtime. Without a stable signature, macOS asks for the login password after every upgrade before bugsplat can read its stored session. Only the release workflow changes (regenerated with dist generate); pull request CI and the manual six-target build never see the certificate. Do not push a release tag after merging this until the repository has the three secrets CODESIGN_CERTIFICATE, CODESIGN_CERTIFICATE_PASSWORD and CODESIGN_IDENTITY (RELEASING.md says what each holds); dist tries to sign with an empty value otherwise. Notarization is not included: dist 0.34 doesn't do it, and npm and curl installs don't need it.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 23:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The release signer cannot replace the arm64 binary’s existing ad hoc signature, and Developer ID signing credentials are exposed to Linux jobs running in third-party containers.

2 open issues
What changed in this PR

Enables Developer ID signing for macOS release binaries, intended to prevent repeated keychain password prompts after upgrades.

Changes:

  • Enables macOS signing in dist and adds hardened-runtime options to the generated release workflow.
  • Passes signing credentials into release builds.
  • Updates release documentation with certificate reuse guidance and the requirement to configure secrets before tagging.
File Description
RELEASING.md Documents enabled signing and required secret setup before release tags.
dist-workspace.toml Enables macOS signing and the release build setup hook.
.github/​workflows/​v-release.yml Adds signing credentials and the macOS hardened-runtime setup step.

Review effort: Balanced

Comment on lines +114 to +115
CODESIGN_CERTIFICATE: ${{ secrets.CODESIGN_CERTIFICATE }}
CODESIGN_CERTIFICATE_PASSWORD: ${{ secrets.CODESIGN_CERTIFICATE_PASSWORD }}
Comment thread dist-workspace.toml
# github-build-setup = "../release-build-setup.yml"
# macOS signing with the Developer ID certificate in the repository's secrets (RELEASING.md).
# The build-setup step makes dist sign with the hardened runtime.
macos-sign = true
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.

2 participants