fix: M4 Mach-O signing + chore: lock closed PRs workflow - #44
Open
alfep wants to merge 2 commits into
Open
Conversation
The --bytecode flag in bun build --compile produces structurally corrupted Mach-O binary headers on Apple Silicon (M4), causing macOS Gatekeeper to SIGKILL the process. Removing the flag restores standard binary format compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevents drive-by comments on resolved threads by locking PRs on close with lock_reason='resolved'. Uses minimal permissions (issues: write, pull-requests: write) and SHA-pinned actions to mitigate pwn-request attacks. Co-Authored-By: Claude Opus 4.6 <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.
Summary
Two unrelated commits, kept separate so they can be reviewed independently:
fix: Remove --bytecode flag to fix Mach-O signing corruption on M4 (closes Bug: "zsh: killed" on macOS Apple Silicon (M4) due to corrupted Mach-O signature in compiled binary #29)
--bytecodefrombun build --compileso the produced binary keeps a structurally correct Mach-O header that macOS Gatekeeper accepts on Apple Silicon M4.chore: add GitHub workflow to lock closed PRs
pull_request_targetreportsclosed, withlock_reason: 'resolved'.issues: write,pull-requests: write.@v3a2844b7e9c422d3c10d287c955573f7108da1b3) so a future tag change cannot repoint to a different commit.Why bundled in one PR
Both touch PR hygiene / release packaging and the diffs are tiny. Happy to split into two PRs if maintainer prefers.
Verification
chore/workflow-m4-prrebased onupstream/main(db7d216).Related