Skip to content

Commit de37f26

Browse files
committed
fix: re-sign macOS binaries in CI to fix Gatekeeper rejection on macOS 26
Go's linker produces ad-hoc signatures with the `linker-signed` flag (0x20002), which macOS 26 (Tahoe) rejects for downloaded binaries. Running `codesign --force --sign -` after build converts it to a proper ad-hoc signature (0x2) that Gatekeeper accepts.
1 parent 10696aa commit de37f26

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ jobs:
201201
./codes version
202202
fi
203203
204+
- name: Sign macOS binary
205+
if: matrix.goos == 'darwin'
206+
run: codesign --force --sign - codes
207+
204208
- name: Upload artifact
205209
uses: actions/upload-artifact@v4
206210
with:

0 commit comments

Comments
 (0)