Skip to content

fix: M4 Mach-O signing + chore: lock closed PRs workflow - #44

Open
alfep wants to merge 2 commits into
freecodexyz:mainfrom
alfep:chore/workflow-m4-pr
Open

fix: M4 Mach-O signing + chore: lock closed PRs workflow#44
alfep wants to merge 2 commits into
freecodexyz:mainfrom
alfep:chore/workflow-m4-pr

Conversation

@alfep

@alfep alfep commented Jul 25, 2026

Copy link
Copy Markdown

Summary

Two unrelated commits, kept separate so they can be reviewed independently:

  1. 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)

    • Dropping --bytecode from bun build --compile so the produced binary keeps a structurally correct Mach-O header that macOS Gatekeeper accepts on Apple Silicon M4.
  2. chore: add GitHub workflow to lock closed PRs

    • Workflow that locks PRs once pull_request_target reports closed, with lock_reason: 'resolved'.
    • Minimal permissions: issues: write, pull-requests: write.
    • SHA-pinned action (@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

Related

alsyah and others added 2 commits July 25, 2026 13:18
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>
Copilot AI review requested due to automatic review settings July 25, 2026 06:19

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Bug: "zsh: killed" on macOS Apple Silicon (M4) due to corrupted Mach-O signature in compiled binary

2 participants