Update gitleaks.toml (#1116)

Use Word Boundaries for EasyPost Tokens
This commit is contained in:
wolframhaussig authored and GitHub committed 2023-03-14 11:06:17 -05:00
1 parent 765bcd5854
commit 1fb3a77eb8
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ func EasyPost() *config.Rule {
r := config.Rule{ r := config.Rule{
Description: "EasyPost API token", Description: "EasyPost API token",
RuleID: "easypost-api-token", RuleID: "easypost-api-token",
Regex: regexp.MustCompile(`EZAK(?i)[a-z0-9]{54}`), Regex: regexp.MustCompile(`\bEZAK(?i)[a-z0-9]{54}`),
Keywords: []string{"EZAK"}, Keywords: []string{"EZAK"},
} }
@@ -28,7 +28,7 @@ func EasyPostTestAPI() *config.Rule {
r := config.Rule{ r := config.Rule{
Description: "EasyPost test API token", Description: "EasyPost test API token",
RuleID: "easypost-test-api-token", RuleID: "easypost-test-api-token",
Regex: regexp.MustCompile(`EZTK(?i)[a-z0-9]{54}`), Regex: regexp.MustCompile(`\bEZTK(?i)[a-z0-9]{54}`),
Keywords: []string{"EZTK"}, Keywords: []string{"EZTK"},
} }
+2 -2
View File
@@ -357,7 +357,7 @@ keywords = [
[[rules]] [[rules]]
description = "EasyPost API token" description = "EasyPost API token"
id = "easypost-api-token" id = "easypost-api-token"
regex = '''EZAK(?i)[a-z0-9]{54}''' regex = '''\bEZAK(?i)[a-z0-9]{54}'''
keywords = [ keywords = [
"ezak", "ezak",
] ]
@@ -365,7 +365,7 @@ keywords = [
[[rules]] [[rules]]
description = "EasyPost test API token" description = "EasyPost test API token"
id = "easypost-test-api-token" id = "easypost-test-api-token"
regex = '''EZTK(?i)[a-z0-9]{54}''' regex = '''\bEZTK(?i)[a-z0-9]{54}'''
keywords = [ keywords = [
"eztk", "eztk",
] ]