git-workflow
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/inspect_repository.pyscript executes systemgitcommands to discover repository state. It employs defensive programming by usingsubprocess.Popenwith argument lists instead of shell strings, preventing command injection. Furthermore, it explicitly sanitizes the process environment by clearing sensitive Git configuration variables (e.g.,GIT_CONFIG_PARAMETERS,GIT_DIR) and settingGIT_TERMINAL_PROMPT=0to prevent credential prompts or configuration hijacking. - [INDIRECT_PROMPT_INJECTION]: The skill instructions and scripts ingest untrusted data from the project environment, such as Git branch names, commit messages, and documentation files (
CONTRIBUTING.md,AGENTS.md). The skill mitigates potential injection attacks by implementing strict JSON schema validation for workflow definitions, using regex constraints for branch patterns (e.g., forbidding regex lookarounds and backreferences), and instructing the agent to clearly separate verified facts from suggestions. - [DYNAMIC_EXECUTION]: The skill identifies an optional
gitflow.pyplugin as an external dependency. While it describes how to execute this plugin from a host-provided path, the instructions explicitly prohibit the agent from guessing paths or executing commands without specific user authorization for write operations. The includedinspect_repository.pyscript is self-contained and uses only the Python standard library.
Audit Metadata