Skip to content

Commit 66d3414

Browse files
chore: remove the quarantine bit from the binary on a GoReleaser's post install hook (#967)
1 parent f836344 commit 66d3414

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.goreleaser.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ homebrew_casks:
8484
# Default is false.
8585
skip_upload: true
8686

87+
hooks:
88+
post:
89+
install: |
90+
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
91+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/ghalint"]
92+
end
93+
8794
scoops:
8895
- description: GitHub Actions linter for security best practices.
8996
license: MIT

0 commit comments

Comments
 (0)