mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Use allowlist (#411)
This commit is contained in:
1 parent
fe69a17c9c
commit
94f5950d68
21 files changed
+111
-111
No files matched your search
+1
-1
@@ -4,7 +4,7 @@
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
|
||||
[whitelist]
|
||||
[allowlist]
|
||||
commits = [
|
||||
"b10b3e2cb320a8c211fda94c4567299d37de7776",
|
||||
"17471a5fda722a9e423f1a0d3f0d267ea009d41c",
|
||||
+3
-3
@@ -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$'''
|
||||
+1
-1
@@ -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$'''
|
||||
+1
-1
@@ -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"
|
||||
+1
-1
@@ -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$'''
|
||||
+1
-1
@@ -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
-2
@@ -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'''
|
||||
]
|
||||
+1
-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 = ['''???????''']
|
||||
@@ -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)$'''
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user