* wip keywords optimization

* update readme

* limit concurrency to 4

* update readme
This commit is contained in:
Zachary Rice authored and GitHub committed 2022-04-05 11:50:50 -05:00
1 parent 237b03af18
commit b0a958f55e
6 files changed
+182 -40

No files matched your search

+6
View File
@@ -20,6 +20,7 @@ type ViperConfig struct {
Entropy float64
SecretGroup int
Regex string
Keywords []string
Path string
Tags []string
@@ -56,6 +57,10 @@ func (vc *ViperConfig) Translate() (Config, error) {
allowlistPaths = append(allowlistPaths, regexp.MustCompile(a))
}
if r.Keywords == nil {
r.Keywords = []string{}
}
if r.Tags == nil {
r.Tags = []string{}
}
@@ -80,6 +85,7 @@ func (vc *ViperConfig) Translate() (Config, error) {
SecretGroup: r.SecretGroup,
Entropy: r.Entropy,
Tags: r.Tags,
Keywords: r.Keywords,
Allowlist: Allowlist{
Regexes: allowlistRegexes,
Paths: allowlistPaths,