* 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
14 lines
299 B
Protocol Buffer
14 lines
299 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package config;
|
|
|
|
option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/configpb";
|
|
|
|
import "sources.proto";
|
|
import "custom_detectors.proto";
|
|
|
|
message Config {
|
|
repeated sources.LocalSource sources = 9;
|
|
repeated custom_detectors.CustomRegex detectors = 13;
|
|
}
|