mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +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
@@ -10,7 +10,7 @@ func AlibabaAccessKey() *config.Rule {
|
||||
r := config.Rule{
|
||||
Description: "Alibaba AccessKey ID",
|
||||
RuleID: "alibaba-access-key-id",
|
||||
Regex: generateUniqueTokenRegex(`(LTAI)(?i)[a-z0-9]{20}`),
|
||||
Regex: generateUniqueTokenRegex(`(LTAI)(?i)[a-z0-9]{20}`, true),
|
||||
Keywords: []string{"LTAI"},
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ func AlibabaSecretKey() *config.Rule {
|
||||
Description: "Alibaba Secret Key",
|
||||
RuleID: "alibaba-secret-key",
|
||||
Regex: generateSemiGenericRegex([]string{"alibaba"},
|
||||
alphaNumeric("30")),
|
||||
alphaNumeric("30"), true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{"alibaba"},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user