👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
fix: use default keychain search for release signing
Leo7b7ff2ad5bd0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex d04f5b7..fe9b24e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -60,8 +60,12 @@ jobs:security unlock-keychain -p "${keychain_password}" "${keychain_path}"security import "${cert_path}" -k "${keychain_path}" -P "${OPEN_COMPUTER_USE_CODESIGN_P12_PASSWORD}" -T /usr/bin/codesign -T /usr/bin/securitysecurity set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${keychain_password}" "${keychain_path}"+ existing_keychains="$(security list-keychains -d user | tr -d '"')"+ # shellcheck disable=SC2086+ security list-keychains -d user -s "${keychain_path}" ${existing_keychains}+ security default-keychain -d user -s "${keychain_path}"- resolved_identity="$(security find-identity -v -p codesigning "${keychain_path}" | sed -n 's/.*\"\\(.*\\)\"/\\1/p' | head -n 1)"+ resolved_identity="$(security find-identity -v -p codesigning | sed -n 's/.*\"\\(.*\\)\"/\\1/p' | head -n 1)"if [ -z "${resolved_identity}" ]; thenecho "Imported signing certificate, but no usable codesigning identity was found in ${keychain_path}." >&2exit 1@@ -72,7 +76,6 @@ jobs:{echo "OPEN_COMPUTER_USE_CODESIGN_MODE=identity"echo "OPEN_COMPUTER_USE_CODESIGN_IDENTITY=${resolved_identity}"- echo "OPEN_COMPUTER_USE_CODESIGN_KEYCHAIN=${keychain_path}"} >> "${GITHUB_ENV}"- name: Build npm release artifactsdiff --git a/docs/histories/2026-04/20260420-1828-fix-release-codesign-identity-resolution.md b/docs/histories/2026-04/20260420-1828-fix-release-codesign-identity-resolution.mdindex 6424cda..93efbf0 100644--- a/docs/histories/2026-04/20260420-1828-fix-release-codesign-identity-resolution.md+++ b/docs/histories/2026-04/20260420-1828-fix-release-codesign-identity-resolution.md@@ -13,6 +13,7 @@**Key Actions:**- **[CI Signing Resolution]**: 把 release workflow 的签名配置从“直接信任 repo secret 里的 identity 名”改成“导入 `.p12` 后,直接从临时 keychain 解析第一条可用 codesigning identity”,避免 runner 上出现 `codesign: no identity found`。+- **[Runner Keychain Compatibility]**: 新增把临时 keychain 加入 user search list、并设成 default keychain 的步骤,再让 `security find-identity` 与后续 `codesign` 统一走默认搜索链,规避 GitHub macOS runner 上直接按 `.keychain-db` 路径查 identity 不稳定的问题。- **[Failure Recording]**: 新增 history,记录 `v0.1.15` 首次 tag push 时 `package-npm` 在 `Build npm release artifacts` 阶段失败的原因和修复方式。### 🧠 Design Intent (Why)