mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Add trufflehog command (#3902)
* Add trufflehog command to pantry * Search for an exact string instead of a regex pattern * Fix the test by piping stderr into stdout * Fix audit: Move trufflehog cli to trufflehog directory * Fix audit: Rename to use the domain of trufflehog
This commit is contained in:
parent
b3e312839a
commit
1308e6ce78
2 changed files with 29 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -6,3 +6,6 @@
|
|||
|
||||
#TODO commit after v1
|
||||
/deno.lock
|
||||
|
||||
# IntelliJ IDE Folder
|
||||
.idea/
|
||||
|
|
26
projects/trufflesecurity.com/trufflehog/package.yml
Normal file
26
projects/trufflesecurity.com/trufflehog/package.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
distributable:
|
||||
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: trufflesecurity/trufflehog
|
||||
|
||||
provides:
|
||||
- bin/trufflehog
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
|
||||
script:
|
||||
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
||||
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
|
||||
|
||||
test:
|
||||
trufflehog --version 2>&1 | grep -F "{{version}}"
|
Loading…
Reference in a new issue