review_pr
Scan changed lines in pull requests for security issues, generate markdown, JSON, or annotations, and block PRs when severity exceeds a threshold.
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 |