Skip to content

Fix macOS release signing keychain unlock failure - #100

Merged
wassgha merged 1 commit into
mainfrom
cursor/fix-macos-signing-keychain-6d1d
Sep 14, 2026
Merged

wassgha merged 1 commit into
mainfrom
cursor/fix-macos-signing-keychain-6d1d

Conversation

@wassgha

@wassgha wassgha commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

macOS release jobs started failing on set-key-partition-list with SecKeychainUnlock: The user name or passphrase you entered is not correct beginning with v1.1.14 / v1.2.0. Windows and Linux still succeed.

This is not a bad CSC_KEY_PASSWORD secret. It is electron-builder#10066: 26.15.3 passes the .p12 import password to security set-key-partition-list -k, but that flag needs the temporary keychain's own password. Older GitHub macOS runners (os=25.5.0) still accepted the wrong password; newer ones (os=25.6.0) reject it.

Fix

Upgrade electron-builder to ^26.16.1, which includes the backport of #10101 (fix(mac): use keychain password for set-key-partition-list).

After merge

Re-cut a release (npm run cut:patchv1.2.1) so the tag points at a commit that includes this upgrade. Re-running the existing v1.2.0 tag alone will still build the old lockfile.

Evidence

Successful v1.1.13: electron-builder 26.15.3 os=25.5.0
Failed v1.2.0:      electron-builder 26.15.3 os=25.6.0
Installed:          electron-builder 26.16.1 / app-builder-lib 26.16.1
PASS: set-key-partition-list uses keychainPassword, not .p12 password

Test plan

  • Confirm installed app-builder-lib@26.16.1 passes keychainPassword into set-key-partition-list
  • Merge and cut v1.2.1; confirm the macOS Build and Release job signs and notarizes successfully
Open in Web Open in Cursor 

Upgrade electron-builder to 26.16.1 so CSC_LINK signing passes the
temporary keychain password to security set-key-partition-list instead
of the .p12 import password. macOS 26.6 rejects the wrong password;
26.15.3 worked only while older runners still accepted it.

Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
app.rescript Ready Ready Preview Sep 14, 2026 10:33pm UTC

@wassgha
wassgha marked this pull request as ready for review September 14, 2026 22:34
@wassgha
wassgha merged commit 53d4d6e into main Sep 14, 2026
3 checks passed
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