Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

fix(ci): let apple-signing environment secrets reach the desktop build (#266)

Yaowei Zheng5d603383a6b6
diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml
index 04f17121..d8670bc8 100644
--- a/.github/workflows/desktop-build.yml
+++ b/.github/workflows/desktop-build.yml
@@ -29,19 +29,13 @@ on:
required: false
type: boolean
default: false
- secrets:
- CSC_LINK:
- required: false
- CSC_KEY_PASSWORD:
- required: false
- APPLE_API_KEY:
- required: false
- APPLE_API_KEY_ID:
- required: false
- APPLE_API_ISSUER:
- required: false
- APPLE_TEAM_ID:
- required: false
+ # No `secrets:` declarations here, deliberately. The signing secrets live in the
+ # `apple-signing` GitHub environment referenced by the macOS matrix job, and
+ # environment secrets resolve inside the job itself — in reusable-workflow calls
+ # included. Declaring them as workflow_call secrets rebinds those names to the
+ # caller-passed values, which are empty when the caller passes none, shadowing the
+ # environment's real values: exactly the v0.2.2 release failure ("Missing macOS
+ # signing secrets" with all six configured).
workflow_dispatch:
inputs:
ref:
@@ -82,9 +76,11 @@ jobs:
args: --win
environment: desktop-build
runs-on: ${{ matrix.os }}
+ # Plain `environment:` reference (no extra keys): the job must genuinely enter the
+ # environment for its secrets to attach; the nonstandard `deployment: false` that sat
+ # here is not part of the jobs.<id>.environment schema and risked exactly that.
environment:
name: ${{ matrix.environment }}
- deployment: false
permissions:
contents: read
steps:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7938507c..243ba1da 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -88,6 +88,10 @@ jobs:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
require_macos_signing: true
+ # The signing secrets themselves live in the `apple-signing` environment and resolve
+ # inside the called job; `inherit` additionally forwards repo-level secrets so the
+ # called workflow never sees a name shadowed to empty (the v0.2.2 failure mode).
+ secrets: inherit
release:
needs: [check-release, desktop]