mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Adding Strip API Regex
```
→ printf ' Stripe.api_key = "Sk_test_41u0zAKbiWmTVhvHcS6gAjp9"
Stripe.api_key = "sk_live_VhYCleaZwuUBGSFYFc7WUboz"
STRIPE_PUBLIC_KEY= "pk_live_8sCPFZoLtW5pXuVHGrRKrROs"' | grep -P "(?i)(sk|pk)_(test|live)_[0-9a-zA-Z]{10,32}"
Stripe.api_key = "Sk_test_41u0zAKbiWmTVhvHcS6gAjp9"
Stripe.api_key = "sk_live_VhYCleaZwuUBGSFYFc7WUboz"
STRIPE_PUBLIC_KEY= "pk_live_8sCPFZoLtW5pXuVHGrRKrROs"
```
This commit is contained in:
1 parent
734befb555
commit
af2e99ef45
1 file changed
+3
@@ -29,6 +29,9 @@ regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
|
||||
[[regexes]]
|
||||
description = "Slack token"
|
||||
regex = '''xox[baprs]-.*'''
|
||||
[[regexes]]
|
||||
description = "Strip API Key"
|
||||
regex = '''(?i)(sk|pk)_(test|live)_[0-9a-zA-Z]{10,32}'''
|
||||
|
||||
[whitelist]
|
||||
regexes = [
|
||||
|
||||
Reference in new issue
Block a user