From fc43928bd961de9ed3873f6892f327b7154eb27c Mon Sep 17 00:00:00 2001 From: fabiomsnunes Date: Tue, 17 Nov 2026 17:34:06 +0000 Subject: [PATCH] fix(release): make the signing identity visible to codesign on the runner The v1.1.0 run imported the certificate but codesign answered 'no identity found': the throwaway keychain was not on the search list and the runner skipped the untrusted self-signed identity. Add the keychain to the search list and trust the certificate for code signing. --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59030e0..87f1c9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,13 @@ jobs: security import "$RUNNER_TEMP/signing.p12" -k "$keychain" -P "$P12_PASSWORD" -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple: -k "$keychain_password" "$keychain" > /dev/null rm "$RUNNER_TEMP/signing.p12" + # codesign only finds identities in keychains on the search list, and the + # runner's macOS skips an untrusted self-signed one ("no identity found"). + security list-keychains -d user -s "$keychain" $(security list-keychains -d user | tr -d '"') + security find-certificate -c "WindowLatch Release" -p "$keychain" > "$RUNNER_TEMP/signing-cert.pem" + sudo security add-trusted-cert -d -r trustRoot -p codeSign \ + -k /Library/Keychains/System.keychain "$RUNNER_TEMP/signing-cert.pem" + security find-identity -p codesigning "$keychain" echo "SIGNING_KEYCHAIN=$keychain" >> "$GITHUB_ENV" - name: Sign .app with the release certificate