mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
fix(ci): point Compose macOS signing at the CI keychain explicitly
The desktop DMG release leg (build-desktop macos, packageReleaseDmg) has never produced a signed artifact: createReleaseDistributable fails with "Could not find certificate for '***' in keychain []". This is independent of the v1.12.3 notarization fix, which addressed the separate amy CLI leg. Root cause: Compose's MacSignerImpl maps the signing identity to a certificate by running `security find-certificate -a -c <identity>` with no keychain argument. On the GitHub macOS runners that lookup does not resolve the cert that import-macos-cert imported into a throwaway keychain and added only to the user search list — even though bare `codesign --sign` (e.g. the signMacJarNatives task, which succeeds in the same job) finds it fine. The "keychain []" in the error is just the null settings.keychain being echoed. Fix: export the throwaway keychain path from the import-macos-cert action and feed it to Compose's `signing.keychain` via AMETHYST_MAC_SIGN_KEYCHAIN, so the certificate lookup searches that keychain directly. Also set it as the default keychain for good measure. No-op on local/PR builds (env unset -> Compose keeps its previous default-search-list behavior). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
7096819f3b
commit
e82237840a
@@ -121,6 +121,11 @@ jobs:
|
||||
# configured — the gradle macOS{} block skips signing when the
|
||||
# identity is blank.
|
||||
AMETHYST_MAC_SIGN_IDENTITY: ${{ steps.mac_keychain.outputs.signing == 'true' && secrets.MAC_SIGN_IDENTITY || '' }}
|
||||
# Explicit keychain for Compose's MacSigner. Its `security
|
||||
# find-certificate` lookup doesn't resolve the imported cert via the
|
||||
# search list on these runners ("Could not find certificate ... in
|
||||
# keychain []"), so point it at the throwaway keychain directly.
|
||||
AMETHYST_MAC_SIGN_KEYCHAIN: ${{ steps.mac_keychain.outputs.signing == 'true' && steps.mac_keychain.outputs.keychain || '' }}
|
||||
AMETHYST_NOTARY_APPLE_ID: ${{ secrets.MAC_NOTARY_APPLE_ID }}
|
||||
AMETHYST_NOTARY_PASSWORD: ${{ secrets.MAC_NOTARY_PASSWORD }}
|
||||
AMETHYST_NOTARY_TEAM_ID: ${{ secrets.MAC_NOTARY_TEAM_ID }}
|
||||
|
||||
Reference in New Issue
Block a user