Skip to content

Commit

Permalink
fix: age rule id with dashes (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro committed Feb 19, 2024
1 parent 247a5e7 commit 6c52f87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/generate/config/rules/age.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func AgeSecretKey() *config.Rule {
// define rule
r := config.Rule{
Description: "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information.",
RuleID: "age secret key",
RuleID: "age-secret-key",
Regex: regexp.MustCompile(`AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}`),
Keywords: []string{"AGE-SECRET-KEY-1"},
}
Expand Down
2 changes: 1 addition & 1 deletion config/gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ keywords = [
]

[[rules]]
id = "age secret key"
id = "age-secret-key"
description = "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information."
regex = '''AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}'''
keywords = [
Expand Down

0 comments on commit 6c52f87

Please sign in to comment.