Skip to content

Commit 0fe06f1

Browse files
authored
chore: add jit entitlements for macos signing (#16)
1 parent 656bc75 commit 0fe06f1

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8+
<true/>
9+
</dict>
10+
</plist>

.github/workflows/pr-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ jobs:
107107
IDENTITY=$(security find-identity -v -p codesigning | grep "Developer ID Application" | head -1 | awk -F'"' '{print $2}')
108108
echo "Signing with identity: $IDENTITY"
109109
110-
# Sign both binaries
111-
codesign --force --options runtime --timestamp --sign "$IDENTITY" grove-darwin-x64
112-
codesign --force --options runtime --timestamp --sign "$IDENTITY" grove-darwin-arm64
110+
# Sign both binaries with JIT entitlements
111+
codesign --force --options runtime --timestamp --entitlements .github/workflows/assets/entitlements.plist --sign "$IDENTITY" grove-darwin-x64
112+
codesign --force --options runtime --timestamp --entitlements .github/workflows/assets/entitlements.plist --sign "$IDENTITY" grove-darwin-arm64
113113
114114
# Verify signatures
115115
codesign --verify --verbose grove-darwin-x64

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ jobs:
120120
IDENTITY=$(security find-identity -v -p codesigning | grep "Developer ID Application" | head -1 | awk -F'"' '{print $2}')
121121
echo "Signing with identity: $IDENTITY"
122122
123-
# Sign both binaries
124-
codesign --force --options runtime --timestamp --sign "$IDENTITY" grove-darwin-x64
125-
codesign --force --options runtime --timestamp --sign "$IDENTITY" grove-darwin-arm64
123+
# Sign both binaries with JIT entitlements
124+
codesign --force --options runtime --timestamp --entitlements .github/workflows/assets/entitlements.plist --sign "$IDENTITY" grove-darwin-x64
125+
codesign --force --options runtime --timestamp --entitlements .github/workflows/assets/entitlements.plist --sign "$IDENTITY" grove-darwin-arm64
126126
127127
# Verify signatures
128128
codesign --verify --verbose grove-darwin-x64

0 commit comments

Comments
 (0)