Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix certificate verification to handle GitHub secret masking

f-trycua8ccee43460d2
diff --git a/.github/workflows/publish-lume.yml b/.github/workflows/publish-lume.yml
index d90df18e46..ec5e7550a2 100644
--- a/.github/workflows/publish-lume.yml
+++ b/.github/workflows/publish-lume.yml
@@ -116,19 +116,22 @@ jobs:
# Verify certificates were imported
echo "Verifying signing identities..."
- security find-identity -v -p codesigning build.keychain
+ CERT_COUNT=$(security find-identity -v -p codesigning build.keychain | grep -c "Developer ID Application" || echo "0")
+ INSTALLER_COUNT=$(security find-identity -v build.keychain | grep -c "Developer ID Installer" || echo "0")
- # Verify specific certificates exist
- if ! security find-identity -v -p codesigning build.keychain | grep -q "Developer ID Application: ${{ secrets.DEVELOPER_NAME }}"; then
- echo "Error: Developer ID Application certificate not found"
+ if [ "$CERT_COUNT" -eq 0 ]; then
+ echo "Error: No Developer ID Application certificate found"
+ security find-identity -v -p codesigning build.keychain
exit 1
fi
- if ! security find-identity -v -p codesigning build.keychain | grep -q "Developer ID Installer: ${{ secrets.DEVELOPER_NAME }}"; then
- echo "Error: Developer ID Installer certificate not found"
+ if [ "$INSTALLER_COUNT" -eq 0 ]; then
+ echo "Error: No Developer ID Installer certificate found"
+ security find-identity -v build.keychain
exit 1
fi
+ echo "Found $CERT_COUNT Developer ID Application certificate(s) and $INSTALLER_COUNT Developer ID Installer certificate(s)"
echo "All required certificates verified successfully"
# Clean up certificate files