pre-commit-manager
Pass
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill executes
pre-commitanddetect-secretsutilities via thesubprocess.runmethod. - These calls are implemented using list-based arguments without the use of a shell (
shell=Trueis not used), which prevents command injection vulnerabilities. - Operations like installation and baseline generation are limited to standard tool behaviors with fixed arguments.
- [EXTERNAL_DOWNLOADS]: The configuration templates reference various external GitHub repositories for pre-commit hooks.
- The references target well-known and reputable repositories from organizations like the Python Software Foundation, Yelp, and established open-source projects.
- [SAFE]: Robust validation is implemented for template selection and file operations.
- Template names are checked against a hardcoded
VALID_TEMPLATESwhitelist. - Explicit checks for path traversal characters (
..,/,\) are performed to prevent unauthorized file system manipulation during configuration generation.
Audit Metadata