mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
fix(rules): entropy, uppercase in samples (#1593)
`go generate` was slightly flaky, since the example true positive secrets for these rules did not include uppercase letters and/or the min entropy was just barely too high
This commit is contained in:
1 parent
5c2e8132f2
commit
5fe58bf0b0
3 files changed
+4
-4
No files matched your search
@@ -23,7 +23,7 @@ func PlaidAccessID() *config.Rule {
|
||||
|
||||
// validate
|
||||
tps := []string{
|
||||
utils.GenerateSampleSecret("plaid", secrets.NewSecret(utils.AlphaNumeric("24"))),
|
||||
utils.GenerateSampleSecret("plaid", secrets.NewSecret(`[a-zA-Z0-9]{24}`)),
|
||||
}
|
||||
return utils.Validate(r, tps, nil)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user