chore(security): allowlist template and test placeholders
This commit is contained in:
1 parent
6fde8902fb
commit
8d1327727c
1 file changed
+18
@@ -0,0 +1,18 @@
|
|||||||
|
# gitleaks flags the empty placeholders of the environment template and a fake
|
||||||
|
# numeric identifier used by the configuration tests. Everything else keeps the
|
||||||
|
# default rule set.
|
||||||
|
[extend]
|
||||||
|
useDefault = true
|
||||||
|
|
||||||
|
[[allowlists]]
|
||||||
|
description = "Environment template: empty placeholders, not credentials"
|
||||||
|
paths = [
|
||||||
|
'''(^|/)\.env\.(example|sample|template)$''',
|
||||||
|
]
|
||||||
|
|
||||||
|
[[allowlists]]
|
||||||
|
description = "Placeholder identifier from the configuration tests"
|
||||||
|
regexTarget = "match"
|
||||||
|
regexes = [
|
||||||
|
'''123456789012345678''',
|
||||||
|
]
|
||||||
Reference in new issue
Block a user