mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
updating generic regex and algoia regex (#875)
This commit is contained in:
1 parent
93e72c215d
commit
469cd22f61
3 files changed
+6
-7
No files matched your search
@@ -10,7 +10,7 @@ func AlgoliaApiKey() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Algolia API Key",
|
||||
RuleID: "algolia-api-key",
|
||||
Regex: generateUniqueTokenRegex(`[a-z0-9]{32}`),
|
||||
Regex: generateSemiGenericRegex([]string{"algolia"}, `[a-z0-9]{32}`),
|
||||
Keywords: []string{"algolia"},
|
||||
}
|
||||
|
||||
@@ -20,4 +20,3 @@ func AlgoliaApiKey() *config.Rule {
|
||||
}
|
||||
return validate(r, tps, nil)
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ func GenericCredential() *config.Rule {
|
||||
"key",
|
||||
"api[^Version]",
|
||||
"token",
|
||||
"pat",
|
||||
"secret",
|
||||
"client",
|
||||
"passwd",
|
||||
"password",
|
||||
"auth",
|
||||
}, `[0-9a-z\-_.=]{10,150}`),
|
||||
@@ -26,7 +26,7 @@ func GenericCredential() *config.Rule {
|
||||
"token",
|
||||
"secret",
|
||||
"client",
|
||||
"pat",
|
||||
"passwd",
|
||||
"password",
|
||||
"auth",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user