trufflehog/hack/snifftest
ahrav 9867ce8eb8
Allow for configuring the buffered file writer (#2319)
* Write large diffs to tmp files

* address comments

* Move bufferedfilewriter to own pkg

* update test

* swallow write err

* use buffer pool

* use size vs len

* use interface

* fix test

* update comments

* fix test

* Allow for configuring the buffered file writer

* remove unused

* add missing method

* remove

* remove unused

* move parser and commit struct closer to where they are used

* linter change

* fix snifftest

* address comments

* add more kvp pairs to error

* fix test

* update

* add back missing metadata fields

* address comments

* remove bufferedfile writer

* fix

* address comments

* use unint8

* update interface

* adjust interface

* fix tests

* make linter happy

* fix finalize

* address comments

* update test

* address comments

* lint

* remove guard

* fix test

* fix

* add TODO

* fix tests
2024-01-30 12:51:58 -08:00
..
main.go Allow for configuring the buffered file writer (#2319) 2024-01-30 12:51:58 -08:00
README.md added azurefunctionkey detector (#2337) 2024-01-29 09:20:33 -08:00
snifftest.sh Azure function key is throwing FPs (#2352) 2024-01-29 15:32:12 -05:00

snifftest

See the help pages with this command, or look further below to get started quickly.

go run hack/snifftest/main.go

Show available secret scanners

go run hack/snifftest/main.go show-scanners

Scan

All scanners

go run snifftest/main.go scan --db ~/sdb --scanner all --print

Particular scanner

go run snifftest/main.go scan --db ~/sdb --scanner github --print --print-chunk --fail-threshold 5