Baruch Odem (Rothkoff) 2 лет назад
Родитель
Сommit
6c52f878cc
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      cmd/generate/config/rules/age.go
  2. 1 1
      config/gitleaks.toml

+ 1 - 1
cmd/generate/config/rules/age.go

@@ -10,7 +10,7 @@ func AgeSecretKey() *config.Rule {
 	// define rule
 	// define rule
 	r := config.Rule{
 	r := config.Rule{
 		Description: "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information.",
 		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}`),
 		Regex:       regexp.MustCompile(`AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}`),
 		Keywords:    []string{"AGE-SECRET-KEY-1"},
 		Keywords:    []string{"AGE-SECRET-KEY-1"},
 	}
 	}

+ 1 - 1
config/gitleaks.toml

@@ -50,7 +50,7 @@ keywords = [
 ]
 ]
 
 
 [[rules]]
 [[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."
 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}'''
 regex = '''AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}'''
 keywords = [
 keywords = [