Skip to content

Commit 573bf0e

Browse files
committed
ci(release): resolve imported macos signing identity
Signed-off-by: xunzhuo <xunzhuo@vllm-semantic-router.ai>
1 parent bb281f7 commit 573bf0e

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/macos-latest-release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)