2023-10-31 21:36:53 +03:00
|
|
|
distributable:
|
2024-02-03 04:55:06 +03:00
|
|
|
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/{{version.tag}}.tar.gz
|
2023-10-31 21:36:53 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: trufflesecurity/trufflehog
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/trufflehog
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.21
|
|
|
|
|
|
|
|
script:
|
2024-02-03 04:55:06 +03:00
|
|
|
- go build -v -ldflags="$GO_LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
2023-10-31 21:36:53 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CGO_ENABLED: 0
|
2024-02-03 04:55:06 +03:00
|
|
|
GO_LDFLAGS:
|
2023-10-31 21:36:53 +03:00
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
|
2024-02-03 04:55:06 +03:00
|
|
|
linux:
|
|
|
|
GO_LDFLAGS:
|
|
|
|
- -buildmode=pie
|
2023-10-31 21:36:53 +03:00
|
|
|
|
2024-02-03 04:55:06 +03:00
|
|
|
test: trufflehog --version 2>&1 | grep -F "{{version}}"
|