@secretlint/secretlint-rule-huggingface
v13.0.2
Published
A secretlint rule for detecting Hugging Face User Access Tokens
Maintainers
Readme
@secretlint/secretlint-rule-huggingface
A rule for detecting Hugging Face User Access Tokens in your code.
Install
Install with npm:
npm install @secretlint/secretlint-rule-huggingfaceUsage
Via .secretlintrc.json(Recommended)
{
"rules": [
{
"id": "@secretlint/secretlint-rule-huggingface"
}
]
}MessageIDs
HUGGINGFACE_USER_ACCESS_TOKEN
Hugging Face User Access Token is detected.
A Hugging Face User Access Token starts with the hf_ prefix followed by exactly 34 alphabetic characters
(see User Access Tokens).
NG examples:
HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxOptions
allows: string[]- Allows a list of RegExp-like String
Changelog
See Releases page.
Running tests
No Test to avoid Dependency cycles.
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT © azu
