Skip to content

Commit

Permalink
fix(secret): update length of hugging-face-access-token (#7216)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen authored Jul 25, 2024
1 parent efb1f69 commit 8c87194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/secret/builtin-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var builtinRules = []Rule{
Category: CategoryHuggingFace,
Severity: "CRITICAL",
Title: "Hugging Face Access Token",
Regex: MustCompile(`hf_[A-Za-z0-9]{39}`),
Regex: MustCompile(`hf_[A-Za-z0-9]{34,40}`),
Keywords: []string{"hf_"},
},
{
Expand Down

0 comments on commit 8c87194

Please sign in to comment.