fix(trufflehog)

wtf is trufflehog?
This commit is contained in:
Jacob Heider 2024-02-02 20:55:06 -05:00
parent 5727636abe
commit a6edc9f2fa
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -1,5 +1,5 @@
distributable:
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/v{{version}}.tar.gz
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
@ -13,14 +13,16 @@ build:
go.dev: ^1.21
script:
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/trufflehog
- go build -v -ldflags="$GO_LDFLAGS" -o "{{prefix}}"/bin/trufflehog
env:
CGO_ENABLED: 0
LDFLAGS:
GO_LDFLAGS:
- -s
- -w
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
linux:
GO_LDFLAGS:
- -buildmode=pie
test:
trufflehog --version 2>&1 | grep -F "{{version}}"
test: trufflehog --version 2>&1 | grep -F "{{version}}"