Unpinned Hugging Face downloads
check_pinsDetect Hugging Face downloads missing commit pins in Python, vLLM, hf download, or YAML files, then show the exact fix per file. Runs offline and aligns with Bandit B615.
Instructions
Hugging Face downloads not pinned to a commit (from_pretrained, vllm serve, hf download, YAML), with the fix per file. Bandit B615 rules. Offline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_pins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size. | |
| paths | No | Files or dirs. Default ".". | |
| cursor | No | Previous nextCursor. | |
| source | No | File text, instead of paths. | |
| filename | No | For source, e.g. train.py. | |
| model_path | No | File, zoo:<id>, hf:<org/name> | |
| model_source | No | Optional: answer about model text passed inline (a .neurarch.json document or PyTorch source). | |
| include_dynamic | No | List ids held in variables. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verdict | Yes | ||
| findings | Yes | ||
| nextCursor | Yes |