mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 08:57:40 +00:00
86c2eb507b
* rename secret * Add supporting docs and tooling for adding new detectors
16 lines
321 B
Bash
Executable file
16 lines
321 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
function cleanup {
|
|
rm -rf pkg/detectors/test
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
export FORCE_PASS_DIFF=true
|
|
|
|
echo "████████████ Testing generate Detector"
|
|
go run hack/generate/generate.go detector Test
|
|
go test ./pkg/detectors/test -benchmem -bench .
|
|
echo ""
|