Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

ci(release): make macOS signing opt-in for unsigned fork builds

LiYaoeeb820da8ca4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f81dc0e37..04a92254d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -86,8 +86,16 @@ jobs:
name: Build ${{ matrix.name }}
needs: verify
env:
- # Tag pushes always sign. workflow_dispatch signs unless explicitly disabled.
- MACOS_SIGN_RELEASE: ${{ github.event_name != 'workflow_dispatch' || inputs.sign_macos == true }}
+ # Signing is opt-in on a fork. A tag push must not force signing: this
+ # repository owns no Apple Developer secrets, and the assertion in
+ # "Require macOS signing and notarization secrets" additionally pins
+ # APPLE_TEAM_ID to the upstream maintainer's team, so no locally obtained
+ # certificate can satisfy it. An unsigned tag build still publishes every
+ # installer; only the Developer ID seal and the notarization ticket are
+ # absent. Set the repository variable MACOS_SIGN_RELEASE=true to restore
+ # upstream's sign-always behaviour once this repository owns a
+ # Developer ID certificate.
+ MACOS_SIGN_RELEASE: ${{ (github.event_name == 'workflow_dispatch' && inputs.sign_macos == true) || vars.MACOS_SIGN_RELEASE == 'true' }}
strategy:
fail-fast: false
matrix: