Skip to content

Commit

Permalink
maintain parity with recent changes... need to create rule contributi…
Browse files Browse the repository at this point in the history
…ng guidelines (#891)
  • Loading branch information
zricethezav committed Jun 20, 2022
1 parent 06b1396 commit c14af5f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/generate/config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/generate/config/rules/dropbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion cmd/generate/config/rules/flutterwave.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
Expand Down
8 changes: 8 additions & 0 deletions config/gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c14af5f

Please sign in to comment.