mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
More rule fixes (#1586)
* feat: tweak more rules * fix(curl): update pattern & ignore more stuff * chore: update .gitleaksignore
This commit is contained in:
1 parent
5407c44e0c
commit
455ae0aab7
47 files changed
+531
-374
No files matched your search
@@ -11,8 +11,8 @@ func PulumiAPIToken() *config.Rule {
|
||||
r := config.Rule{
|
||||
RuleID: "pulumi-api-token",
|
||||
Description: "Found a Pulumi API token, posing a risk to infrastructure as code services and cloud resource management.",
|
||||
Regex: utils.GenerateUniqueTokenRegex(`pul-[a-f0-9]{40}`, true),
|
||||
|
||||
Regex: utils.GenerateUniqueTokenRegex(`pul-[a-f0-9]{40}`, false),
|
||||
Entropy: 2,
|
||||
Keywords: []string{
|
||||
"pul-",
|
||||
},
|
||||
@@ -22,5 +22,8 @@ func PulumiAPIToken() *config.Rule {
|
||||
tps := []string{
|
||||
utils.GenerateSampleSecret("pulumi-api-token", "pul-"+secrets.NewSecret(utils.Hex("40"))),
|
||||
}
|
||||
return utils.Validate(r, tps, nil)
|
||||
fps := []string{
|
||||
` <img src="./assets/vipul-f0eb1acf0da84c06a50c5b2c59932001997786b176dec02bd16128ee9ea83628.png" alt="" class="w-16 h-16 rounded-full">`,
|
||||
}
|
||||
return utils.Validate(r, tps, fps)
|
||||
}
|
||||
Reference in new issue
Block a user