Skip to content

Commit 2ea8d2e

Browse files
Refactor functions names
1 parent 76d8a7b commit 2ea8d2e

File tree

3 files changed

+13
-1501
lines changed

3 files changed

+13
-1501
lines changed

engine/rules/generic-key.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package rules
22

33
import (
4+
"github.com/zricethezav/gitleaks/v8/cmd/generate/config/rules"
45
"github.com/zricethezav/gitleaks/v8/config"
56
)
67

@@ -9,7 +10,7 @@ func GenericCredential() *config.Rule {
910
r := config.Rule{
1011
RuleID: "generic-api-key",
1112
Description: "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
12-
Regex: generateSemiGenericRegexWithAdditionalRegex([]string{
13+
Regex: generateSemiGenericRegexIncludingXml([]string{
1314
"key",
1415
"api",
1516
"token",
@@ -33,7 +34,7 @@ func GenericCredential() *config.Rule {
3334
},
3435
Entropy: 3.5,
3536
Allowlist: config.Allowlist{
36-
StopWords: DefaultStopWords,
37+
StopWords: rules.DefaultStopWords,
3738
},
3839
}
3940

0 commit comments

Comments
 (0)