pantry/projects/trufflesecurity.com/trufflehog/package.yml

29 lines
599 B
YAML
Raw Normal View History

distributable:
2024-02-03 04:55:06 +03:00
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/{{version.tag}}.tar.gz
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
env:
CGO_ENABLED: 0
2024-02-03 04:55:06 +03:00
GO_LDFLAGS:
- -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
2024-02-03 04:55:06 +03:00
test: trufflehog --version 2>&1 | grep -F "{{version}}"