mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
[fix] Always configure the engine with the default detectors (#3152)
If detectors are not wanted by a user, they can be filtered out via the `--include-detectors` or `--exclude-detectors` flag.
This commit is contained in:
parent
05e4635824
commit
eccbca730d
1 changed files with 6 additions and 2 deletions
6
main.go
6
main.go
|
@ -466,7 +466,11 @@ func run(state overseer.State) {
|
|||
|
||||
engConf := engine.Config{
|
||||
Concurrency: *concurrency,
|
||||
Detectors: conf.Detectors,
|
||||
// The engine must always be configured with the list of
|
||||
// default detectors, which can be further filtered by the
|
||||
// user. The filters are applied by the engine and are only
|
||||
// subtractive.
|
||||
Detectors: append(engine.DefaultDetectors(), conf.Detectors...),
|
||||
Verify: !*noVerification,
|
||||
IncludeDetectors: *includeDetectors,
|
||||
ExcludeDetectors: *excludeDetectors,
|
||||
|
|
Loading…
Reference in a new issue