Feat/allowlist regex target (#1107)

* adding regexTarget entry in allowlist

* update readme

* add globalregextarget to check

* update readme
This commit is contained in:
Zachary Rice authored and GitHub committed 2023-02-26 08:51:59 -06:00
1 parent 343e69399b
commit 4b5e8e1829
4 files changed
+51 -19

No files matched your search

+10
View File
@@ -335,6 +335,10 @@ paths = [
'''go\.mod''',
'''go\.sum'''
]
# note: (rule) regexTarget defaults to check the _Secret_ in the finding.
# if regexTarget is not specified then _Secret_ will be used.
# Acceptable values for regexTarget are "match" and "line"
regexTarget = "match"
regexes = [
'''process''',
'''getenv''',
@@ -357,6 +361,12 @@ paths = [
'''gitleaks\.toml''',
'''(.*?)(jpg|gif|doc)'''
]
# note: (global) regexTarget defaults to check the _Secret_ in the finding.
# if regexTarget is not specified then _Secret_ will be used.
# Acceptable values for regexTarget are "match" and "line"
regexTarget = "match"
regexes = [
'''219-09-9999''',
'''078-05-1120''',