maintain parity with recent changes... need to create rule contributing guidelines (#891)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-06-20 14:14:14 -05:00
1 parent 06b1396a2a
commit c14af5ffdf
4 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ func main() {
log.Fatal().Err(err).Msg("Failed to parse template")
}
f, err := os.Create("gitleaks.toml")
f, err := os.Create("../../../config/gitleaks.toml")
if err != nil {
log.Fatal().Err(err).Msg("Failed to create rules.toml")
}
+1 -1
View File
@@ -9,7 +9,7 @@ func DropBoxAPISecret() *config.Rule {
// define rule
r := config.Rule{
Description: "Dropbox API secret",
RuleID: "doppler-api-token",
RuleID: "dropbox-api-token",
Regex: generateSemiGenericRegex([]string{"dropbox"}, alphaNumeric("15")),
SecretGroup: 1,
Keywords: []string{"dropbox"},
+1 -1
View File
@@ -27,7 +27,7 @@ func FlutterwaveSecretKey() *config.Rule {
// define rule
r := config.Rule{
Description: "Finicity Secret Key",
RuleID: "flutterwave-public-key",
RuleID: "flutterwave-secret-key",
Regex: regexp.MustCompile(`FLWSECK_TEST-(?i)[a-h0-9]{32}-X`),
Keywords: []string{"FLWSECK_TEST"},
}
+8
View File
@@ -298,6 +298,14 @@ keywords = [
"flwseck_test",
]
[[rules]]
description = "Finicity Secret Key"
id = "flutterwave-secret-key"
regex = '''FLWSECK_TEST-(?i)[a-h0-9]{32}-X'''
keywords = [
"flwseck_test",
]
[[rules]]
description = "Frame.io API token"
id = "frameio-api-token"