Use allowlist (#411)

This commit is contained in:
Zachary Rice authored and GitHub committed 2020-07-24 11:58:43 -04:00
1 parent fe69a17c9c
commit 94f5950d68
21 files changed
+111 -111

No files matched your search

@@ -4,7 +4,7 @@
tags = ["key", "AWS"]
[whitelist]
[allowlist]
commits = [
"b10b3e2cb320a8c211fda94c4567299d37de7776",
"17471a5fda722a9e423f1a0d3f0d267ea009d41c",
@@ -2,13 +2,13 @@
description = "AWS Manager ID"
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[[rules.whitelist]]
[[rules.allowlist]]
description = "ignore md files"
file = '''(.*)?md$'''
[[rules.whitelist]]
[[rules.allowlist]]
description = "ignore this regex"
regex = '''ignore$'''
[[rules.whitelist]]
[[rules.allowlist]]
description = "ignore regex and md files"
regex = '''ignore$'''
file = '''(.*)?md$'''
@@ -2,6 +2,6 @@
description = "AWS Manager ID"
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[[rules.whitelist]]
[[rules.allowlist]]
description = "ignore python files"
file = '''(.*)?py$'''
@@ -2,6 +2,6 @@
description = "AWS Manager ID"
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[[rules.whitelist]]
[[rules.allowlist]]
regex = '''AKIAIO5FODNN7EXAMPLE.*'''
description = "ignore aws key"
@@ -3,7 +3,7 @@
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[whitelist]
[allowlist]
description = "ignore md files"
files = [
'''(.*)?md$'''
@@ -3,7 +3,7 @@
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[whitelist]
[allowlist]
description = "ignore config folders"
paths = [
'''config(uration)?'''
@@ -2,8 +2,8 @@
description = "AWS Manager ID"
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[whitelist]
description = "whitelist repo"
[allowlist]
description = "allowlist repo"
repos = [
'''test_repo_1'''
]
@@ -3,6 +3,6 @@
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[whitelist]
[allowlist]
description = "ignore md files"
files = ['''???????''']
+6 -6
View File
@@ -125,13 +125,13 @@ title = "gitleaks config"
description = "AWS Manager ID"
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["key", "AWS"]
[[rules.whitelist]]
[[rules.allowlist]]
description = "ignore common jenkins functions"
regex = '''whitelistme'''
regex = '''allowlistme'''
file = '''(.*)?Jenkinsfile$'''
[[rules.whitelist]]
[[rules.allowlist]]
description = "ignore common jenkins functions2"
regex = '''whitelistme'''
regex = '''allowlistme'''
file = '''(.*)?Jenkinsfile$'''
# Global rules. This instructs gitleaks to ignore all .pem files or if a message with
@@ -139,8 +139,8 @@ title = "gitleaks config"
description = "Files with keys and credentials"
fileRegex = '''(.*?)(pem)'''
[whitelist]
description = "File whitelists"
[allowlist]
description = "File allowlists"
files = [
'''(.*?)(jpg|gif)$''',
'''(.*?)(doc|pdf|bin)$'''