mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
feat(rules): make case insensitivity optional (#1215)
This commit is contained in:
1 parent
9fb36b242d
commit
18283bb48e
85 files changed
+151
-136
No files matched your search
@@ -11,7 +11,7 @@ func YandexAWSAccessToken() *config.Rule {
|
||||
RuleID: "yandex-aws-access-token",
|
||||
Description: "Yandex AWS Access Token",
|
||||
Regex: generateSemiGenericRegex([]string{"yandex"},
|
||||
`YC[a-zA-Z0-9_\-]{38}`),
|
||||
`YC[a-zA-Z0-9_\-]{38}`, true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{
|
||||
"yandex",
|
||||
@@ -32,7 +32,7 @@ func YandexAPIKey() *config.Rule {
|
||||
RuleID: "yandex-api-key",
|
||||
Description: "Yandex API Key",
|
||||
Regex: generateSemiGenericRegex([]string{"yandex"},
|
||||
`AQVN[A-Za-z0-9_\-]{35,38}`),
|
||||
`AQVN[A-Za-z0-9_\-]{35,38}`, true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{
|
||||
"yandex",
|
||||
@@ -53,7 +53,7 @@ func YandexAccessToken() *config.Rule {
|
||||
RuleID: "yandex-access-token",
|
||||
Description: "Yandex Access Token",
|
||||
Regex: generateSemiGenericRegex([]string{"yandex"},
|
||||
`t1\.[A-Z0-9a-z_-]+[=]{0,2}\.[A-Z0-9a-z_-]{86}[=]{0,2}`),
|
||||
`t1\.[A-Z0-9a-z_-]+[=]{0,2}\.[A-Z0-9a-z_-]{86}[=]{0,2}`, true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{
|
||||
"yandex",
|
||||
|
||||
Reference in new issue
Block a user