File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,18 @@ jobs:
105105 security set-key-partition-list -S apple-tool:,apple: -s -k "${keychain_password}" "${keychain_path}"
106106 security list-keychains -d user -s "${keychain_path}" $(security list-keychains -d user | tr -d '"')
107107
108- echo "MACOS_SIGNING_IDENTITY=${APPLE_SIGNING_IDENTITY}" >> "$GITHUB_ENV"
108+ echo "Available codesigning identities:"
109+ security find-identity -v -p codesigning "${keychain_path}"
110+ resolved_identity="$(
111+ security find-identity -v -p codesigning "${keychain_path}" \
112+ | awk '/Developer ID Application|Mac Developer ID Application/ { print $2; exit }'
113+ )"
114+ if [ -z "${resolved_identity}" ]; then
115+ echo "::error::No Developer ID Application identity is available after importing the p12 certificate."
116+ exit 1
117+ fi
118+
119+ echo "MACOS_SIGNING_IDENTITY=${resolved_identity}" >> "$GITHUB_ENV"
109120 echo "MACOS_NOTARIZE=1" >> "$GITHUB_ENV"
110121 echo "MACOS_RELEASE_SIGNING_MODE=developer-id-notarized" >> "$GITHUB_ENV"
111122 echo "signing_mode=developer-id-notarized" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments