mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Adding a bunch of new rules, update allowlist to include node_modules… (#896)
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions * use func instead of function in stopwords
This commit is contained in:
1 parent
d196b83ca6
commit
73a3cf8afb
33 files changed
+1243
-25
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package rules
|
||||
|
||||
import (
|
||||
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
|
||||
"github.com/zricethezav/gitleaks/v8/config"
|
||||
)
|
||||
|
||||
func SentryAccessToken() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
RuleID: "sentrytoken-access-token",
|
||||
Description: "Sentrytoken Access Token",
|
||||
Regex: generateSemiGenericRegex([]string{"sentry"}, hex("64")),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{
|
||||
"sentry",
|
||||
},
|
||||
}
|
||||
|
||||
// validate
|
||||
tps := []string{
|
||||
generateSampleSecret("sentry", secrets.NewSecret(hex("64"))),
|
||||
}
|
||||
return validate(r, tps, nil)
|
||||
}
|
||||
Reference in new issue
Block a user