Repository navigation
fix(ci): the release's signing job gets its secrets - #234
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe release workflow now passes caller secrets to the macOS reusable workflow by using Merge Risk:
|
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. Passing secrets: inherit at the one call site that needs signing fixes the empty APPLE_* values seen in the failed release run, and macos.yml's Sign job still pins environment: release.
Reviewed changes
Reviewed the whole diff, a single file.
release.ymlmacoscall — addssecrets: inheritwith a comment saying why. Only themacoscall changes.flatpak.ymluses no secrets.
claude-sonnet-5-5 | 𝕏

Problem
The first release run (run 45091269923) failed in macOS's Sign jobs:
APPLE_CERTIFICATEwas empty, sosecurity importfailed and Publish was skipped.release.ymlcallsmacos.ymlas a reusable workflow without passing secrets. A called workflow's environment secrets resolve to""unless its caller passes secrets, even when the called job declaresenvironment: release(GitHub docs, actions/runner#4453). All sixAPPLE_*secrets are set in thereleaseenvironment.Approach
release.yml'smacoscall passessecrets: inherit. The Sign job keepsenvironment: release, so it gets that environment's values, and only protected branches can deploy to it.Impact
Alternatives
workflow_call.secretsblock inmacos.ymland pass the six by name: narrower, but the calling job has no environment, so it has no environment secrets to pass by name;inheritis the documented and reproduced way (actions/runner#4453) for a called job's environment to resolve. Beyond thereleaseenvironment,inheritadds only the org secretDISCORD_WEBHOOK, whichmacos.ymlnever reads and any workflow on the same ref could already read directly.Follow-ups
None.
Caused by
macos.ymlcall torelease.ymlwithout passing secrets; no release ran until now (found by the first release run).Validation
just cipasses andactionlintaccepts the workflow. The signing path can only run from a protected branch, so it is proven by re-runningrelease.ymlonmainonce this lands.Review
Reviewed head a8fc28f against main (54edbf4) with
quest review(risk high: it changes a workflow; size M applied, as the run could not read this PR's record from the review checkout's branch). The record was written by hand because the run printedrecord skipped.secrets: inheritpasses every secret tomacos.yml: refuted. Naming the six instead cannot work, becauserelease.yml's calling job has no environment and so noAPPLE_*secrets to pass.inheritadds only the org secretDISCORD_WEBHOOK, whichmacos.ymlnever references and any workflow on the same ref could already read.APPLE_CERTIFICATE:blank rather than***, which is exactly what actions/runner#4453 reproduces, andsecrets: inheritis that issue's confirmed workaround. The final proof is the release re-run onmain.Also checked:
actionlintpasses on both workflows, andgh apilists all sixAPPLE_*secrets in thereleaseenvironment and none at repository scope.Models
Size: XS
Implementer: Claude Code, claude-opus-5-5, high effort
🤖 Generated with Claude Code