mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54: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
@@ -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)$'''
|
||||
|
||||
Reference in new issue
Block a user