Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: unlock login keychain before codesign on self-hosted macOS runners

Louis Beaumontda2f328a0b5d
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index dd31eb6dd..8f050e31b 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -738,6 +738,17 @@ jobs:
echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV
echo "Setting MACOSX_DEPLOYMENT_TARGET=10.15 for std::filesystem support"
+ - name: Unlock login keychain for codesign cert chain
+ if: matrix.os_type == 'macos'
+ shell: bash
+ run: |
+ # On self-hosted runners, the login keychain may be locked which prevents
+ # codesign from finding Apple intermediate certs needed for chain verification.
+ # Unlock it (empty password set during runner setup).
+ security unlock-keychain -p '' ~/Library/Keychains/login.keychain-db 2>/dev/null || true
+ # Ensure System.keychain is in search list for cert chain verification
+ security list-keychain -d user -s ~/Library/Keychains/login.keychain-db /Library/Keychains/System.keychain
+
- name: Compute Tauri build args
id: tauri-args
shell: bash