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: 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 strip-components: 1
versions: versions:
@ -13,14 +13,16 @@ build:
go.dev: ^1.21 go.dev: ^1.21
script: script:
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/trufflehog - go build -v -ldflags="$GO_LDFLAGS" -o "{{prefix}}"/bin/trufflehog
env: env:
CGO_ENABLED: 0 CGO_ENABLED: 0
LDFLAGS: GO_LDFLAGS:
- -s - -s
- -w - -w
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}} - -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
linux:
GO_LDFLAGS:
- -buildmode=pie
test: test: trufflehog --version 2>&1 | grep -F "{{version}}"
trufflehog --version 2>&1 | grep -F "{{version}}"