File tree 2 files changed +21
-3
lines changed
2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,17 @@ jobs:
39
39
go-version : " 1.23"
40
40
- name : Cosign install
41
41
uses : sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
42
+ - name : Install UPX
43
+ run : |
44
+ sudo apt-get update
45
+ sudo apt-get install -y upx
42
46
- name : Run GoReleaser
43
47
uses : goreleaser/goreleaser-action@v6
44
48
with :
45
- distribution : goreleaser
49
+ distribution : goreleaser-pro
46
50
version : latest
47
51
args : release --clean
48
52
env :
49
53
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
54
HOMEBREW_TAP_TOKEN : ${{ secrets.HOMEBREW_TAP_TOKEN }}
55
+ GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
Original file line number Diff line number Diff line change 1
1
version : 2
2
2
builds :
3
- - binary : trufflehog
3
+ - id : trufflehog-upx
4
+ binary : trufflehog
4
5
ldflags :
5
6
- -s -w -X 'github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{ .Version }}'
6
7
env : [CGO_ENABLED=0]
7
8
goos :
8
9
- linux
9
- - windows
10
+ goarch :
11
+ - amd64
12
+ - arm64
13
+ hooks :
14
+ post :
15
+ - upx -q "{{ .Path }}"
16
+ - id : trufflehog
17
+ binary : trufflehog
18
+ ldflags :
19
+ - -X 'github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{ .Version }}'
20
+ env : [CGO_ENABLED=0]
21
+ goos :
10
22
- darwin
23
+ - windows
11
24
goarch :
12
25
- amd64
13
26
- arm64
You can’t perform that action at this time.
0 commit comments