* Add config.proto
* Make protos
* Add ConfigurableSource implementation
* Parse config protoyaml into configured sources
* Refactor setting postman keywords into a helper method on the engine
* Add scan subcommand and plumb it all together
* Refactor ConfigurableSource to ConfiguredSource
* Export AhoCorasickCoreKeywords and return the set
* Disallow source configurations for non-scan subcommands
* Fix stdin scan compilation errors
* Rename command to multi-scan
* Add config file documentation
* Add more documentation for ConfiguredSource
* Replace initFunc closure with an embedded anonymous struct
* Assign directly to refs
* Fix typo
* Implement EndpointCustomizer
Add the EndpointCustomizer interface and EndpointSetter convenience struct,
implement EndpointCustomizer for github and gitlab detectors, and add
parsing, verification, and applying user-supplied configuration.
* Check error from SetEndpoints
* Rename variable for clarity
* Adjust types to use DetectorID struct
* Parse versions with detector include and exclude input
* Update detectors filter to use version
Co-authored-by: steeeve <steve@trufflesec.com>
* Implement Versioner for github, gitlab, and npm detectors
Co-authored-by: steeeve <steve@trufflesec.com>
---------
Co-authored-by: steeeve <steve@trufflesec.com>
* Add ability to include and exclude detectors
* Trim space before checking for empty items
* Explicitly check for integer overflow
* Use strconv.ParseInt instead of strconv.Atoi
* Address comments