mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
feat(gcp): update api key rule (#1481)
This commit is contained in:
1 parent
75dd70e59a
commit
df126a7473
2 files changed
+14
-5
No files matched your search
@@ -499,7 +499,8 @@ keywords = [
|
||||
[[rules]]
|
||||
id = "gcp-api-key"
|
||||
description = "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches."
|
||||
regex = '''(?i)\b(AIza[0-9A-Za-z\\-_]{35})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
regex = '''\b(AIza[\w-]{35})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"aiza",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user