mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +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]]
|
[[regexes]]
|
||||||
description = "Slack token"
|
description = "Slack token"
|
||||||
regex = '''xox[baprs]-.*'''
|
regex = '''xox[baprs]-.*'''
|
||||||
|
[[regexes]]
|
||||||
|
description = "Strip API Key"
|
||||||
|
regex = '''(?i)(sk|pk)_(test|live)_[0-9a-zA-Z]{10,32}'''
|
||||||
|
|
||||||
[whitelist]
|
[whitelist]
|
||||||
regexes = [
|
regexes = [
|
||||||
|
|||||||
Reference in new issue
Block a user