Audit the released image, and the app inside it - #1
Merged
Merged
Conversation
release.sh verified the disk image and stopped there, which is how the app inside it came to be shipped without a ticket of its own: nothing looked. That was fixed by stapling the app, but the fix had no guard, so it could go away as quietly as it arrived. audit-release.sh checks both, along with the Developer ID authority, the hardened runtime, the secure timestamp, the Gatekeeper verdict, the architecture and the version. release.sh calls it in place of its two inline checks, and it takes a path, so a downloaded image can be put through the same audit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
release.shverified the disk image and stopped there. That is how the app inside it shipped without a ticket of its own — nothing looked at the app. Stapling it fixed the artifact, but the fix had no guard, so it could disappear as quietly as it arrived.scripts/audit-release.shchecks both, plus the Developer ID authority, hardened runtime, secure timestamp, Gatekeeper verdict, architecture and version.release.shcalls it in place of its two inline checks. It takes a path, so a downloaded image can be put through the same audit:./scripts/audit-release.sh ~/Downloads/TypeSwitch-1.0.0.dmg 1.0.0Verified
Against the current
build/TypeSwitch-1.0.0.dmg:Every failure path was exercised too — wrong version, missing image, and an image with no notarization ticket all exit 1, and the cleanup trap leaves nothing mounted.
🤖 Generated with Claude Code