Skip to content

Commit 8c87194

Browse files
authored
fix(secret): update length of hugging-face-access-token (#7216)
1 parent efb1f69 commit 8c87194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fanal/secret/builtin-rules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ var builtinRules = []Rule{
165165
Category: CategoryHuggingFace,
166166
Severity: "CRITICAL",
167167
Title: "Hugging Face Access Token",
168-
Regex: MustCompile(`hf_[A-Za-z0-9]{39}`),
168+
Regex: MustCompile(`hf_[A-Za-z0-9]{34,40}`),
169169
Keywords: []string{"hf_"},
170170
},
171171
{

0 commit comments

Comments
 (0)