mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
adding go mod/sum to ignore, adding quotes to aws secret rule (#397)
* adding go mod/sum to ignore, adding quotes to aws secret rule * lil nicer formatting
This commit is contained in:
1 parent
2232dc191c
commit
e36b550851
1 file changed
+4
-2
+4
-2
@@ -13,7 +13,7 @@ title = "gitleaks config"
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)[0-9a-zA-Z\/+]{40}'''
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
@@ -133,5 +133,7 @@ title = "gitleaks config"
|
||||
|
||||
[whitelist]
|
||||
description = "Whitelisted files"
|
||||
files = [ '''(^\.?gitleaks.toml$|(.*?)(jpg|gif|doc|pdf|bin)$)''' ]
|
||||
files = ['''^\.?gitleaks.toml$''',
|
||||
'''(.*?)(jpg|gif|doc|pdf|bin)$''',
|
||||
'''(go.mod|go.sum)$''']
|
||||
`
|
||||
Reference in new issue
Block a user