remove secretgroup from default config (#1288)

* remove secretgroup from default config

* update test data and AWS

* leave secretgroup
This commit is contained in:
Zachary Rice authored and GitHub committed 2023-11-10 12:53:07 -06:00
1 parent 20fcf5009f
commit e63b657bcf
93 files changed
+146 -284

No files matched your search

+4 -4
View File
@@ -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_",
},