Repository navigation
ci(release): check stapler and Gatekeeper on the downloaded macOS DMG (#2424) - #5441
Merged
Merged
Conversation
… (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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2424. Its acceptance criterion needs the DMG to pass
spctl --assessandxcrun stapler validate. Release logs show Apple accepted the notarization and the ticket was stapled, but no job asks Gatekeeper itself.ci/macos_dmg_startup.pygetsverify_notarization(dmg, app), which runs three checks:xcrun stapler validateon the DMG;spctl --assess --type open --context context:primary-signatureon the DMG;spctl --assess --type executeon 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 whereOBS_MACOS_REQUIRE_NOTARIZATION=1, which the release workflow sets only onobs-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.
7fb304e4d:test_smoke_checks_gatekeeper_on_the_downloaded_dmgfails because the workflow variable and the function are missing.test_release_notarization,test_packaged_startup,test_macos_startup_diagnosticsandtest_macos_run_onlypass, 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