mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Add detection for OpenAI API keys (#1148)
* Add detection for OpenAI API keys * Remove `sk-` keyword
This commit is contained in:
1 parent
c101fa88d2
commit
7dc9ba40a7
3 files changed
+35
No files matched your search
@@ -2371,6 +2371,15 @@ keywords = [
|
||||
"okta",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
description = "OpenAI API Key"
|
||||
id = "openai-api-key"
|
||||
regex = '''(?i)\b(sk-[a-zA-Z0-9]{20}T3BlbkFJ[a-zA-Z0-9]{20})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
secretGroup = 1
|
||||
keywords = [
|
||||
"sk-","t3blbkfj",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
description = "Plaid API Token"
|
||||
id = "plaid-api-token"
|
||||
|
||||
Reference in new issue
Block a user