Skip to content

PR Scanning

Caspian-Explorer edited this page Mar 12, 2026 · 1 revision

PR-Scoped Scanning

Scan only the files changed on your current branch compared to main or master.

How to Use

  1. Switch to your feature branch
  2. Open the Command Palette (Ctrl+Shift+P)
  3. Run Caspian Security: Scan Branch Changes (PR Scope)

How It Works

  1. Detects the base branch (main or master)
  2. Finds the merge-base (where your branch diverged)
  3. Lists all files changed since the merge-base (git diff --name-only)
  4. Filters to supported language files
  5. Scans only those files
  6. Shows results with the branch name in scan metadata

Benefits

  • Focused feedback — see only issues relevant to your changes
  • Faster scans — skip unchanged files
  • PR review ready — know exactly what security issues your PR introduces

Requirements

  • Must be on a feature branch (not main or master)
  • Git must be available in the workspace
  • The base branch (main or master) must exist locally

Clone this wiki locally