Skip to content

fix(ci): the release's signing job gets its secrets - #234

Merged
kixelated merged 1 commit into
mainfrom
fix/release-signing-secrets
Nov 23, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/release-signing-secrets

Conversation

@kixelated

@kixelated kixelated commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The first release run (run 45091269923) failed in macOS's Sign jobs: APPLE_CERTIFICATE was empty, so security import failed and Publish was skipped. release.yml calls macos.yml as a reusable workflow without passing secrets. A called workflow's environment secrets resolve to "" unless its caller passes secrets, even when the called job declares environment: release (GitHub docs, actions/runner#4453). All six APPLE_* secrets are set in the release environment.

Approach

release.yml's macos call passes secrets: inherit. The Sign job keeps environment: release, so it gets that environment's values, and only protected branches can deploy to it.

Impact

  • None for users. Releases can sign and publish the macOS images. No API or wire impact.

Alternatives

  • Name each secret in a workflow_call.secrets block in macos.yml and pass the six by name: narrower, but the calling job has no environment, so it has no environment secrets to pass by name; inherit is the documented and reproduced way (actions/runner#4453) for a called job's environment to resolve. Beyond the release environment, inherit adds only the org secret DISCORD_WEBHOOK, which macos.yml never reads and any workflow on the same ref could already read directly.

Follow-ups

None.

Caused by

  • moq-dev/studio#170 - added the signed macos.yml call to release.yml without passing secrets; no release ran until now (found by the first release run).

Validation

just ci passes and actionlint accepts the workflow. The signing path can only run from a protected branch, so it is proven by re-running release.yml on main once 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 printed record skipped.

  • Codex gpt-6.1-sol high: score 8, no findings.
  • Codex gpt-6.1-sol xhigh (shadow): score 9, no findings.
  • Claude Code claude-sonnet-5-5 medium (second): score 8, two low findings, both refuted with no code change:
    1. secrets: inherit passes every secret to macos.yml: refuted. Naming the six instead cannot work, because release.yml's calling job has no environment and so no APPLE_* secrets to pass. inherit adds only the org secret DISCORD_WEBHOOK, which macos.yml never references and any workflow on the same ref could already read.
    2. The cause in the comment is unverified: refuted. The failed run's Sign logs (both arches) render APPLE_CERTIFICATE: blank rather than ***, which is exactly what actions/runner#4453 reproduces, and secrets: inherit is that issue's confirmed workaround. The final proof is the release re-run on main.

Also checked: actionlint passes on both workflows, and gh api lists all six APPLE_* secrets in the release environment and none at repository scope.

Models

Size: XS
Implementer: Claude Code, claude-opus-5-5, high effort

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as draft November 23, 2026 02:10
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release workflow now passes caller secrets to the macOS reusable workflow by using secrets: inherit. A comment describes the called workflow’s secret access when the caller does not pass secrets.

Merge Risk: Minimal · up to a8fc2

This change lets the release workflow pass its signing secrets to the macOS signing job so releases can sign and publish. It has no user-facing or API impact. It can only be fully confirmed by rerunning the release on main, and no concrete merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the release signing job now gets its secrets. The raw summary confirms that release.yml passes secrets: inherit to the macos reusable workflow call, which matches the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains the release failure, the cause (release.yml calls macos.yml without passing secrets), the fix (secrets: inherit on the macos call), the alternatives considered, validation, an…
Full details: Title check

Explanation

The title names the main change: the release signing job now gets its secrets. The raw summary confirms that release.yml passes secrets: inherit to the macos reusable workflow call, which matches the title. The title is short, specific, and uses the conventional fix(ci) form.

Full details: Description check

Explanation

The description explains the release failure, the cause (release.yml calls macos.yml without passing secrets), the fix (secrets: inherit on the macos call), the alternatives considered, validation, and review notes. It directly describes the changeset, so it is not off-topic or vague.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bb451f5c-217e-4f0e-a226-d276a9187e15
Commits

Reviewing files that changed from the base of the PR and between 54edbf4 and a8fc28f.

Files selected for processing: 1

  • .github/workflows/release.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.yml macos call — adds secrets: inherit with a comment saying why. Only the macos call changes. flatpak.yml uses no secrets.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated marked this pull request as ready for review November 23, 2026 02:20
@kixelated
kixelated merged commit 4553d73 into main Nov 23, 2026
3 of 4 checks passed
@kixelated
kixelated deleted the fix/release-signing-secrets branch November 23, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant