Skip to content

fix: Work around macOS signing keychain failure - #2464

Merged
taratatach merged 1 commit into
masterfrom
ci/fix-macos-code-signing
Aug 26, 2026
Merged

fix: Work around macOS signing keychain failure#2464
taratatach merged 1 commit into
masterfrom
ci/fix-macos-code-signing

Conversation

@taratatach

@taratatach taratatach commented Aug 26, 2026

Copy link
Copy Markdown
Member

Closes #2463

electron-builder passes the .p12 import password instead of the
generated keychain password to security set-key-partition-list,
which the macos-26 runners reject (upstream bug
electron-userland/electron-builder#10066, fix PRs #10067/#10101
still open).

Create the signing keychain ourselves in the build-and-publish
action, import the certificate and set the partition list with the
correct keychain password, then unset CSC_LINK/CSC_KEY_PASSWORD
so electron-builder discovers the identity via
security find-identity and never hits the buggy code path.
forceCodeSigning keeps the build fail-fast if discovery finds no identity.
Linux is untouched. Revert once the upstream fix lands and we upgrade.

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

  electron-builder passes the .p12 import password instead of the
  generated keychain password to `security set-key-partition-list`,
  which the `macos-26` runners reject (upstream bug
  electron-userland/electron-builder#10066, fix PRs #10067/#10101
  still open).

  Create the signing keychain ourselves in the `build-and-publish`
  action, import the certificate and set the partition list with the
  correct keychain password, then unset `CSC_LINK`/`CSC_KEY_PASSWORD`
  so `electron-builder` discovers the identity via `security
  find-identity` and never hits the buggy code path. `forceCodeSigning`
  keeps the build fail-fast if discovery finds no identity. Linux is
  untouched. Revert once the upstream fix lands and we upgrade.
@taratatach taratatach self-assigned this Aug 26, 2026
@taratatach
taratatach requested review from shepilov and removed request for shepilov August 26, 2026 09:13
@taratatach
taratatach merged commit 3f658f0 into master Aug 26, 2026
15 of 17 checks passed
@taratatach
taratatach deleted the ci/fix-macos-code-signing branch August 26, 2026 12:53
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.

macOS signing fails on macos-26-intel runners: security set-key-partition-list unlock error (electron-builder bug)

1 participant