github-pr-review
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [Command Execution]: The skill's scripts utilize
subprocess.runto interact with theghCLI andgit. This is the intended design for its functionality, allowing it to fetch pull request metadata, read repository files, and post review comments. The commands are built using parameters like pull request numbers and repository names obtained from the GitHub environment. - [External Data Interaction]: The skill fetches data from the GitHub API using the
ghtool to analyze pull request diffs, code content, and existing comments. This interaction is central to its purpose as a code review assistant. - [Indirect Prompt Injection Surface]: By ingesting external data such as pull request code and comments, the skill has an attack surface for indirect prompt injection. This risk is mitigated by a mandatory human approval step (Step 6), where the user reviews all proposed comments before they are posted. Additionally, sub-agents are restricted by a 'depth limit' that prevents them from executing code or auditing third-party dependencies.
- [Defensive Reporting Practices]: The
build_report.pyscript implements acsv_safefunction to protect against spreadsheet formula injection (CSV Injection). It prepends a tab character to any data starting with characters that could trigger formula execution (=,+,-, or@) when the report is opened in tools like Excel. - [Automated Verification]: The
verify_findings.pyscript provides a layer of validation by checking that proposed review comments accurately reflect the code at the specified lines. It also filters out findings that are deemed too complex or 'expensive' for a human to quickly verify, which helps reduce the impact of potential AI hallucinations.
Audit Metadata