Replies: 2 comments 2 replies
-
NOTE: I can submit a fix for that. Just not sure if I need to change |
Beta Was this translation helpful? Give feedback.
2 replies
-
Track #6823 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am playing around with the secret detector in https://github.com/aquasecurity/trivy/blob/main/pkg/fanal/secret/ and I notice that the detector is not able to detect Hugging Face tokens.
Looking at the HF Regex it expected 39 symbols after
hf_
. However, my HF token has only 34 symbols.Example HF token:
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
(already revoked)Desired Behavior
Detect a HF token.
Actual Behavior
Not detecting a HF token.
Reproduction Steps
1. Create a Hugging Face account at https://huggingface.co/ 2. Generate an API token at https://huggingface.co/settings/tokens 3. Provide that token as input to the `secret.Scanner` 4. Assert that it returns no findings
Target
Filesystem
Scanner
Secret
Output Format
None
Mode
Standalone
Debug Output
Operating System
macOS
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions