Add a gitleaks rule to find hex strings in URLs
but allow things that look like Github SHAs.
This commit is contained in:
@@ -9,3 +9,11 @@ paths = [
|
||||
'''docs/''',
|
||||
'''test/''',
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "basecamp-integration-url"
|
||||
description = "Basecamp Integration URL"
|
||||
regex = '''https://[^\s]*?([0-9a-fA-F]{16,})'''
|
||||
[rules.allowlist]
|
||||
regexTarget = "match"
|
||||
regexes = ['''github\.com''']
|
||||
|
||||
Reference in New Issue
Block a user