mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Update stripe rule to not alert on publishable keys (#1320)
* Update stripe rule to not alert on publishable keys * run go gen --------- Co-authored-by: Erin Browning <ebrowning@makenotion.com> Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com>
This commit is contained in:
2 files changed
+3
-5
No files matched your search
@@ -10,12 +10,10 @@ func StripeAccessToken() *config.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: generateUniqueTokenRegex(`(sk|pk)_(test|live)_[0-9a-z]{10,32}`, true),
|
||||
Regex: generateUniqueTokenRegex(`(sk)_(test|live)_[0-9a-z]{10,32}`, true),
|
||||
Keywords: []string{
|
||||
"sk_test",
|
||||
"pk_test",
|
||||
"sk_live",
|
||||
"pk_live",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user