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-commit and detect-secrets utilities via the subprocess.run method.
  • These calls are implemented using list-based arguments without the use of a shell (shell=True is 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_TEMPLATES whitelist.
  • Explicit checks for path traversal characters (.., /, \) are performed to prevent unauthorized file system manipulation during configuration generation.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 2, 2026, 04:52 PM