Scanning
PR Scanning
Understand how DryRun Security automatically analyzes your pull requests for security vulnerabilities.
Overview
How It Works #
DryRun Security analyzes code changes every time a pull request is opened or updated. Its security agents inspect the diff, evaluate the surrounding context, and report findings directly on the PR - before the code is merged. Each finding is evaluated for impact and exploitability and tagged with a severity: Critical, High, Medium, or Low. Scanning runs automatically with no manual steps required: open a PR and DryRun Security handles the rest.
Results appear as a summary comment on the pull request, inline comments on specific lines, and a pass/fail check status that integrates with your branch protection rules. This keeps security feedback inside the developer workflow where it can be acted on immediately.
Where it runs
Supported Platforms #
DryRun Security integrates natively with GitHub, GitLab, and GitHub Enterprise Server (GHES), covering both cloud-hosted and self-managed source code platforms:
GitHub
- Trigger
- Pull request opened or synchronized
- Check status
- GitHub Checks API
- Inline comments
- PR review comments on affected lines
GitLab
- Trigger
- Merge request opened or updated
- Check status
- GitLab pipeline status
- Inline comments
- Merge request discussion comments
GitHub Enterprise Server
- Trigger
- Pull request opened or synchronized
- Check status
- GitHub Checks API
- Inline comments
- PR review comments on affected lines
Code security agents
What Gets Analyzed #
When a pull request is opened, DryRun Security retrieves the diff along with relevant surrounding code context - imported modules, authentication middleware, framework conventions, and any configured security policies. Analysis is scoped to the changed regions and the code paths that flow through them.
DryRun Security also reads the repository's agents.md file, if present. This allows teams to provide context and instructions that guide the security analysis - such as project-specific conventions, known safe patterns, or areas of particular concern.
The following security agents run on every PR scan:
- Cross-Site Scripting Analyzer
- General Security Analyzer
- IDOR Analyzer
- Mass Assignment
- Secrets Analyzer
- Server-Side Request Forgery Analyzer
- SQL Injection Analyzer
- Any custom code policies created by your team
All findings are filtered to the changed regions of the pull request. Pre-existing issues in unchanged code are excluded from the results so developers can focus on what they introduced.
Results in the PR
Check Status & Feedback #
DryRun Security reports results through two channels: a summary comment on the pull request with an overview of all findings, and a single DryRun Security status check that integrates with your branch protection rules.
The check reflects every agent and policy in the scan:
| Status | Meaning |
|---|---|
| Success | No findings at or above the configured severity threshold. The PR is clear to merge. |
| Failure | One or more findings meet or exceed the blocking threshold. The PR cannot be merged until issues are resolved. |
When findings are detected, inline comments are posted directly on the affected lines of code with a description of the vulnerability and remediation guidance. For details on enforcing merge gates with check statuses, see PR Blocking.
Scan Details Timeline #
Each pull request in the DryRun Security dashboard has a Scan Details panel with a Timeline of every scan run on the PR. The timeline shows what DryRun Security sent to GitHub or GitLab for each run, and when the delivery was confirmed. That makes it easier to see why a check or comment did or didn't appear on a PR.

Runs are grouped by commit, and each run shows its run ID and the time the scan was initiated. Each run lists these activities:
| Activity | What It Records |
|---|---|
| Scan Initiated | The scan started for the commit. |
| Check Created | The DryRun Security check was created on the PR. On GitLab, this appears as Commit Status Created. |
| Comment Posted or Comment Updated | The summary comment was posted to the PR, or the existing comment was updated. |
| Check Completed | The final check result was sent to the PR. On GitLab, this appears as Commit Status Completed. |
After the runs, Merge Webhook Received shows when DryRun Security received the merge event for the PR.
Each activity has one of three statuses:
| Status | Meaning |
|---|---|
| Pending | The delivery hasn't been confirmed yet. Pending means unconfirmed, not a proven failure. |
| Completed | GitHub or GitLab confirmed the delivery. The row shows the confirmation time. |
| Skipped Due to Configuration | The repository's configuration turned off the activity. The row shows the time and the reason, such as "Skipped, PR/MR comments disabled" or "Skipped, no findings and scan confirmation disabled." |
Scans that ran before timeline tracking was available show "Activity history unavailable for this run."
If you are seeing noisy or irrelevant findings, you can tune your findings to reduce noise and focus on the issues that matter most to your team.
Settings
Configuration #
PR scanning behavior is controlled through configurations in the DryRun Security dashboard. Each configuration can be applied to one or more repositories, and a default configuration covers any repository not assigned to a specific one.
| Setting | Default | What It Controls |
|---|---|---|
| Security Agents | All enabled | Which code security analyzers (XSS, SQLi, IDOR, Secrets, etc.) run on PRs |
| Custom Code Policies | None attached | Organization-specific rules written in plain English, enforced on every PR |
| PR Blocking | Disabled | Whether findings at a given severity fail the check status and prevent merge |
| Blocking Threshold | High | Minimum severity level (Critical, High, Medium, Low) that triggers a failed check |
| PR Issue Comments | Enabled | Whether DryRun Security posts a summary comment and inline findings on the PR |
| Notifications | Disabled | Alerts sent via Slack or webhook when findings are detected |
Configurations follow an inheritance model: the default configuration applies to all repositories, and repository-specific configurations override it. This lets you set organization-wide baselines while customizing behavior for individual repositories or teams.
See PR Scanning Configuration for a full walkthrough of creating and managing configurations.
Compare
How PR Scanning Differs From DeepScan #
DryRun Security offers two scanning modes. PR Scanning analyzes changes as they arrive in pull requests. DeepScan performs a full-repository analysis to find vulnerabilities in existing code. The two modes are complementary:
| Aspect | PR Scan | DeepScan |
|---|---|---|
| Scope | Changed files and surrounding context in the PR | Entire repository codebase |
| Trigger | Automatic on PR open or update | Manual (dashboard or API) or scheduled |
| Speed | Seconds to minutes, depending on diff size | Minutes to hours, depending on repo size |
| Differential Analysis | Yes - only new findings from the PR are reported | No - all findings in the codebase are reported |
| Results Location | PR comments, inline annotations, check statuses, and the DryRun Security dashboard | DryRun Security dashboard and Risk Register |
| Best For | Catching new vulnerabilities before merge | Baseline assessment, audits, and legacy code review |
Coverage
Supported Languages #
PR scanning supports all programming languages and frameworks with text-based source code, the same as DeepScan. For the stacks with specific optimizations, see Language and Framework Support.
Coverage
Vulnerability Categories #
PR scanning can detect a broad set of vulnerability categories. For the complete system-wide reference, see the Vulnerability Coverage Matrix.
See adversarial review in action.
15 minutes with a security expert.