review_pr
Analyze pull request diffs for security issues. Scan only changed lines and generate GitHub Check Runs, PR comments, or inline annotations. Block PRs automatically based on configurable severity thresholds.
Instructions
Review a pull request for security issues. Scans only changed lines (diff-only mode) and produces output for GitHub Check Runs, PR comments, or inline annotations. Supports severity gating to block PRs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Repository root path | . |
| base | No | Base branch to diff against | main |
| format | No | Output: markdown (PR comment), json (structured), annotations (GitHub Check Runs) | markdown |
| diff_only | No | Only report findings in changed lines (true) or all findings in changed files (false) | |
| fail_on | No | Block PR if findings at this severity or above exist | high |