mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
More rule fixes (#1586)
* feat: tweak more rules * fix(curl): update pattern & ignore more stuff * chore: update .gitleaksignore
This commit is contained in:
1 parent
5407c44e0c
commit
455ae0aab7
47 files changed
+531
-374
No files matched your search
@@ -9,9 +9,10 @@ import (
|
||||
func StripeAccessToken() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
Description: "Found a Stripe Access Token, posing a risk to payment processing services and sensitive financial data.",
|
||||
RuleID: "stripe-access-token",
|
||||
Regex: utils.GenerateUniqueTokenRegex(`(sk|rk)_(test|live|prod)_[0-9a-z]{10,99}`, true),
|
||||
Description: "Found a Stripe Access Token, posing a risk to payment processing services and sensitive financial data.",
|
||||
Regex: utils.GenerateUniqueTokenRegex(`(?:sk|rk)_(?:test|live|prod)_[a-zA-Z0-9]{10,99}`, false),
|
||||
Entropy: 2,
|
||||
Keywords: []string{
|
||||
"sk_test",
|
||||
"sk_live",
|
||||
|
||||
Reference in new issue
Block a user