gh-pr-review
Pass
Audited by Gen Agent Trust Hub on Aug 17, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the
gh(GitHub) andsonar(SonarQube) CLI tools to retrieve PR metadata, review comments, and static analysis issues. Execution is managed via helper scripts that validate command arguments and restrict calls to a predefined whitelist of allowed commands. - [PROMPT_INJECTION]: The skill ingests untrusted content from external sources (pull request comments and SonarQube issues), creating a surface for indirect prompt injection.
- Ingestion points: External data is fetched from pull request conversation comments, review submissions, and SonarQube issue bodies via
scripts/fetch_comments.pyin Phase 1. - Boundary markers: The instructions in
SKILL.mdexplicitly define review content as "untrusted claims" and prohibit the interpolation of this data into shell commands, file paths, or executable code. - Capability inventory: The agent has access to
Edit,Write, andBashtools (via theghandsonarCLIs), which could be targets for manipulation through embedded instructions. - Sanitization: The
fetch_comments.pyscript truncates long inputs and labels external nodes as "untrusted_external_content." Additionally, the workflow implements a mandatory manual review phase where the user must select valid items from a generated ledger before any changes are implemented.
Audit Metadata