huggingface-community-evals
Pass
Audited by Gen Agent Trust Hub on Aug 18, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- Command Execution via Subprocess: The Python scripts utilize the
subprocess.runfunction to invoke external command-line tools such asinspectandlighteval. The commands are constructed using arguments passed to the script, which is a standard pattern for creating CLI wrappers. The use of list-based arguments instead of shell strings helps prevent shell injection vulnerabilities. - Remote Code Execution Consideration: The scripts expose a
--trust-remote-codeparameter, which is a standard feature in the Hugging Face ecosystem (Transformers, LightEval). When enabled, this allows the underlying library to execute Python code hosted within a Hugging Face model repository. This is a common requirement for certain model architectures, and the skill correctly surfaces this as an explicit user-controlled option. - Credential Handling: The skill includes guidance and examples for managing Hugging Face authentication tokens (
HF_TOKEN) via environment variables and.envfiles. This aligns with security best practices for avoiding hardcoded secrets while enabling access to gated or private models.
Audit Metadata