mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
remove secretgroup from default config (#1288)
* remove secretgroup from default config * update test data and AWS * leave secretgroup
This commit is contained in:
1 parent
20fcf5009f
commit
e63b657bcf
93 files changed
+146
-284
No files matched your search
@@ -18,8 +18,8 @@ func HuggingFaceAccessToken() *config.Rule {
|
||||
RuleID: "huggingface-access-token",
|
||||
Description: "Hugging Face Access token",
|
||||
Regex: regexp.MustCompile(`(?:^|[\\'"` + "`" + ` >=:])(hf_[a-zA-Z]{34})(?:$|[\\'"` + "`" + ` <])`),
|
||||
SecretGroup: 1,
|
||||
Entropy: 1,
|
||||
|
||||
Entropy: 1,
|
||||
Keywords: []string{
|
||||
"hf_",
|
||||
},
|
||||
@@ -73,8 +73,8 @@ func HuggingFaceOrganizationApiToken() *config.Rule {
|
||||
RuleID: "huggingface-organization-api-token",
|
||||
Description: "Hugging Face Organization API token",
|
||||
Regex: regexp.MustCompile(`(?:^|[\\'"` + "`" + ` >=:\(,)])(api_org_[a-zA-Z]{34})(?:$|[\\'"` + "`" + ` <\),])`),
|
||||
SecretGroup: 1,
|
||||
Entropy: 2,
|
||||
|
||||
Entropy: 2,
|
||||
Keywords: []string{
|
||||
"api_org_",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user