Skip to content

ci(release): check stapler and Gatekeeper on the downloaded macOS DMG (#2424) - #5441

Merged
zackees merged 2 commits into
masterfrom
ci/2424-macos-gatekeeper-check
Nov 22, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/2424-macos-gatekeeper-check

Conversation

@zackees

@zackees zackees commented Nov 22, 2026

Copy link
Copy Markdown
Member

Refs #2424. Its acceptance criterion needs the DMG to pass spctl --assess and xcrun stapler validate. Release logs show Apple accepted the notarization and the ticket was stapled, but no job asks Gatekeeper itself.

ci/macos_dmg_startup.py gets verify_notarization(dmg, app), which runs three checks:

  • xcrun stapler validate on the DMG;
  • spctl --assess --type open --context context:primary-signature on the DMG;
  • spctl --assess --type execute on the installed app.

It runs in the existing Native macOS … DMG startup 🧪 job, after the codesign checks and before the four startup modes. That job still only installs and runs the Linux-built DMG, so the rule that macOS runners only run binaries stays intact. The checks are required where OBS_MACOS_REQUIRE_NOTARIZATION=1, which the release workflow sets only on obs-rust/obs-studio, where the signing and notarization credentials exist. A fork's unsigned DMG skips them. The next scheduled release proves it on both architectures.

RED → GREEN. This is a CI fix, so the RED evidence is local.

  • RED, 7fb304e4d: test_smoke_checks_gatekeeper_on_the_downloaded_dmg fails because the workflow variable and the function are missing.
  • GREEN: test_release_notarization, test_packaged_startup, test_macos_startup_diagnostics and test_macos_run_only pass, and ruff is clean. actionlint reports only runner labels that are already on master.

The other half of #2424, rotating the exposed app-specific password, needs the Apple ID holder.

🤖 Generated with Claude Code

zackees and others added 2 commits November 22, 2026 00:26
… (RED, #2424)

#2424's acceptance criteria need the DMG to pass `xcrun stapler
validate` and `spctl --assess`. Nothing runs either check today. The
release logs show notarization was accepted and stapled, but not that
Gatekeeper accepts what a user downloads.

The new test expects macos_dmg_startup.verify_notarization(dmg, app)
to run three checks: stapler validate on the DMG, spctl --type open
(primary signature) on the DMG, and spctl --type execute on the
installed app. They run when OBS_MACOS_REQUIRE_NOTARIZATION=1, which
the workflow sets only on obs-rust/obs-studio, where the credentials
exist; forks skip them. The call comes after the codesign checks and
before the app is launched.

RED: the workflow sets no such variable and the function does not
exist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#2424)

macos_dmg_startup.verify_notarization(dmg, app) runs three checks:
- `xcrun stapler validate` on the DMG;
- `spctl --assess --type open --context context:primary-signature`
  on the DMG;
- `spctl --assess --type execute` on the installed app.

It runs after the codesign checks and before the four startup modes.
The release workflow sets OBS_MACOS_REQUIRE_NOTARIZATION=1 only on
obs-rust/obs-studio, where the signing and notarization credentials
exist. A fork's unsigned DMG skips it.

The job still only installs and runs the Linux-built DMG.

GREEN: test_release_notarization, test_packaged_startup,
test_macos_startup_diagnostics and test_macos_run_only pass. ruff is
clean. actionlint reports only the runner labels already on master.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees
zackees enabled auto-merge November 22, 2026 08:27
@zackees
zackees added this pull request to the merge queue Nov 22, 2026
Merged via the queue into master with commit 93db54d Nov 22, 2026
43 checks passed
@zackees
zackees deleted the ci/2424-macos-gatekeeper-check branch November 22, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant