> ## Documentation Index
> Fetch the complete documentation index at: https://zeropath.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Scanner Settings

> Configure scanning behavior, schedules, and feature toggles per repository

## Overview

Scanner settings control how ZeroPath scans your repositories — which tools run, how findings are filtered, how PRs are handled, and when scheduled scans execute. Settings follow a cascading inheritance model. See [From the Dashboard](#from-the-dashboard) for the organization, tag, and repository settings paths.

## Scanner workspace

Open **Settings** in the sidebar. The scanner pages are listed under **Scanner** in the [Settings menu](https://zeropath.com/docs/platform/navigation.md#the-settings-menu):

| Page | Purpose |
| - | - |
| [Scanner settings](https://zeropath.com/app/scanner) | Organization defaults and tag overrides for scanning, dependencies, and remediation |
| [Scan locations](https://zeropath.com/app/locations) | Include or exclude files during full scans |
| [Repository context](https://zeropath.com/app/context) | Teach the scanner facts about your architecture. Customer-edited application overviews and threat model sections are preserved even when the underlying directory is renamed or removed. See [Application Discovery](https://zeropath.com/docs/scanning/sast-overview.md#end-to-end-flow) for details. |
| [Rules](https://zeropath.com/app/rules) | Define security policies and enable rule packs |
| [Sources & sinks](https://zeropath.com/app/custom-markers) | Describe custom security entry points and sensitive operations |

The Settings menu shows only the pages you have permission to open. The sidebar's **Settings** entry opens the first Settings page you can open, which is **General** for every member, not a scanner page. Existing bookmarks and links to individual rules, declarations, and tag settings continue to work. Repository-specific settings remain available on each repository's **Settings** tab.

## Settings Inheritance

Settings are applied in a three-level cascade:

```
Organization (lowest priority)
    ↓
Tag (medium priority)
    ↓
Repository (highest priority)
```

* **Organization settings** apply to all repositories as the default baseline.
* **Tag settings** override organization defaults for repositories with that tag. Tags have a priority order — higher priority tags override lower ones.
* **Repository settings** override everything for a specific repository.

Only explicitly set values override — unset fields fall through to the next level.

When you reset (delete) scanner settings at the organization or repository level, any custom
rules, custom sources and sinks, scan location sets, and other declarations associated with
that scope are preserved. Only the setting overrides themselves are cleared, returning the
scope to inherited defaults. This means you can reset your scan configuration without losing
the rules and declarations you have built up.

## Scan Module Toggles

Open **Full scans → Full Scan Issue Types** or **Pull requests → PR Scan Issue Types** at the scope you want to configure. Expand the issue-type selector, choose modules, then click **Save Changes**. The selector uses the labels **Secrets Detection**, **AI Inventory**, and **Container Scanning**; Container Scanning is offered only under Full scans. CI/CD analysis does not have a separate entry in this selector.

You can link directly to the Full Scan Issue Types section at the organization level by appending `#full-scan-issue-types` to the scanner settings URL. The page will scroll to and expand the section automatically.

The scanning capabilities are described below:

| Capability | What It Scans |
| - | - |
| **SAST** | Static code analysis across all supported languages |
| **SCA** | Dependency vulnerability scanning using the next-generation SCA engine (enabled by default). Runs as part of full scans; SCA scans are configured separately via scan scheduling. Transitive dependency resolution is supported for Java (Maven, Gradle), Scala (sbt), Python (pip), .NET, and Rust (Cargo), enabling detection of vulnerabilities in indirect dependencies across these ecosystems. SCA findings are enriched with exploit intelligence when available: **EPSS** (Exploit Prediction Scoring System) scores show the modeled probability of exploitation in the next 30 days, and **CISA KEV** (Known Exploited Vulnerabilities) indicators flag CVEs that have been actively exploited in the wild. These signals appear on both the issue list and the issue detail pane to help you prioritize remediation. |
| **IaC** | Infrastructure-as-code misconfiguration detection. Findings are validated using an IaC-specific process that checks deployment context, and include attack steps and exploitability preconditions. IaC validation runs consistently regardless of which other scan modules are enabled, so findings receive the same validation verdict whether IaC runs alongside SAST or on its own. |
| **CI/CD** | CI/CD pipeline security analysis (GitHub Actions workflows, pipeline configurations). Findings are validated using a CI/CD-specific process that checks workflow trigger context, and include attack steps and exploitability preconditions. |
| **Secrets Detection** | Hardcoded credentials and API keys. Findings are validated using a secret-specific process that includes live credential verification when possible, and include attack steps and exploitability preconditions. To prevent accidental exposure of detected credentials, secrets findings display a generic title (e.g., "Detected secret in `config.yaml`") and a redacted description in external outputs such as API responses, reports, and notifications. This redaction also applies to any SAST or IaC finding whose CWE indicates a hardcoded credential (such as CWE-259, CWE-260, CWE-321, or CWE-798), since the flagged source line may contain the credential itself. SCA and Container findings are not redacted even when they carry these CWEs, because the flagged line is a package reference rather than the credential. The full finding details are available by opening the affected file directly in your repository. |
| **EOL** | End-of-life / unsupported dependency detection |
| **AI Inventory** | Detect AI components, including SDKs, agent frameworks, model files, and agent configurations |
| **Container Scanning** | Container image vulnerability scanning. Enabled by default for full scans. Available for full scans only — container scanning is a standalone scan phase and is not part of PR scans. See [Container Scanning](https://zeropath.com/docs/scanning/container-scanning.md) for details. |

Toggle settings display their current effective state, accounting for the inheritance cascade. If a toggle has not been explicitly set at the repository level, it shows whether the value is inherited from the organization or tag level and what the current effective value is.

## Key Settings

### Full Scan Settings

Find scan triggers, schedules, issue types, confidence, and runtime validation under **Full scans**. Full-scan patch generation and fix PR creation are grouped under **Remediation**.

| Setting | Default | Description |
| - | - | - |
| **Confidence filter** | Strict | Threshold for including findings: Strict (fewer, higher confidence), Balanced, or Permissive (more findings) |
| **Auto-patching** | Off | Automatically generate patches for qualifying findings |
| **Auto-PR creation** | Off | Automatically open PRs for generated patches |
| **Patch threshold** | 80 | Minimum score (0–100) for auto-patching |
| **PR threshold** | 80 | Minimum score for auto-PR creation |
| **Custom rules only** | Off | When enabled, disables all built-in scanning modules (SAST, SCA, IaC, Secrets, EOL) and only runs your custom natural-language rules against identified sources. You can toggle this directly from the Scanner settings page at the organization, tag, or repository level, or via the API. Note: even when this toggle is off, any custom natural-language SAST rules you have configured are still enforced during both full scans and PR scans — PR scans apply rules whose glob patterns match the changed files, so violations are caught before merge. |
| **Full scan mode** | Standard | **Standard** or **Lightweight**, set in the **Analysis** section of **Full scans** at the organization, tag, or repository level. Lightweight checks known vulnerability patterns and validates potential issues with AI. It skips broader AI discovery and custom natural-language rules, and other enabled scanners continue to run. With nothing set, the organization shows **Default · Standard**, and tags and repositories show the mode they inherit, for example **Inherited · Standard**. **Use default** (organization) or **Use inherited** (tag or repository) clears an override. Lightweight cannot be combined with **Custom rules only**: a save that would make both apply, including through inherited settings, is refused with "Lightweight full scans cannot be combined with custom-rules-only scanning. Select Standard mode or disable custom-rules-only scanning, including inherited settings." A repository whose settings already combine the two cannot run full scans until you change one of them. |
| **Differential scanning** | Off | When enabled, small code changes are evaluated with an AI-powered differential rescan instead of re-running the full scan pipeline, significantly reducing scan time for incremental commits. Dependency manifest changes are evaluated separately from code changes, so a small code diff can still trigger a fresh dependency analysis pass when needed. |
| **Codex-enhanced differential scanning** | On | When enabled, uses an advanced AI model for differential scanning and final validation of findings, improving accuracy for incremental scans |
| **Automatic Runtime Validation** | Off | When enabled, queues Dynamic Testing (DAST) runtime validation for eligible findings after a full scan when the application profile is configured and ready. You can also start selected-issue Runtime Validation manually from the issue view or repository Runtime Validation tab. |
| **Auto-Provision Runtime Validation** | Off | When enabled, automatically provisions a source-build runtime validation profile for each detected application after every full scan, then queues validation for eligible findings. No manual profile configuration or uploaded artifact is required — ZeroPath builds and runs the application directly from source inside an isolated container, then exercises eligible findings against the running application. Applications already queued are skipped automatically. Enable this setting to get runtime validation results without any upfront profile setup. |
| **Continuous Scanning** | Off | When enabled, ZeroPath runs a full scan every time a meaningful commit lands on the repository's default branch, including merged pull requests, so findings stay current between scheduled scans. Follow-up scans reuse the previous scan's results and only re-examine what changed, which also resolves issues the new commits fixed. |
| **AppSec Assistant** | Off | When enabled, activates an AI-powered application security assistant that can help with security-related questions about your codebase. See [AppSec Assistant](#appsec-assistant) for details on planning mode and skills. |

### PR Scan Settings

Open **Pull requests** for PR scan behavior, checks, and comments. PR scan patch generation is under **Remediation**.

| Setting | Default | Description |
| - | - | - |
| **PR scanning enabled** | Off | Master toggle for PR scanning. You can view the current PR scanning and PR summary status for each repository directly in the repository detail view and API response. |
| **Inline review comments** | On | Post inline comments on affected diff lines |
| **PR summary (issues found)** | On | Post a summary comment on PRs when the scan detects security issues. This is separate from inline review comments. |
| **PR summary (clean scan)** | On | Post a summary comment on PRs when the scan finds no security issues. Useful for confirming that a PR was scanned. |
| **Check failure threshold** | 75 | Score at which the VCS check is marked as failing. Must be greater than or equal to the comment visibility threshold. |
| **Detailed vulnerability info** | Not set | Include vulnerability descriptions, severity scores, and remediation details in PR summary comments. When not explicitly set, downstream settings (tag or organization level) apply. |
| **Comment visibility threshold** | 0 | Minimum score for a finding to appear in PR comments. Only available when inline review comments or PR summary comments are enabled. Must be equal to or less than the check failure threshold. The platform validates this constraint at every settings level (organization, tag, and repository) when you save changes and returns an error showing the actual threshold values if violated. Threshold options that would violate this constraint are automatically disabled in the UI, preventing invalid selections before you save. |
| **Scan timeout** | 10 min | Maximum time before the scan times out. Configurable from a minimum of 5 minutes up to 24 hours (1,440 minutes). |
| **Auto-patching** | On | Generate fix suggestions for PR scan findings |
| **Confidence filter** | Strict | Same as full scan, applied to PR scans |
| **Scan draft MRs** | Off | Whether to scan draft pull requests and merge requests. By default, PRs opened as drafts are skipped and only scanned once they are marked ready for review. Enable this setting to scan drafts immediately when opened or updated. |
| **Scan bot PRs** | Off | Whether to scan PRs opened by automation |
| **Allow PR check bypass** | On | When enabled, a **Bypass Check** button appears on failing PR security checks, allowing authorized developers to override a blocking result. Disable this to remove the button entirely and prevent any bypass. |

### Fix Verification

You can reference existing ZeroPath issues directly in your PR description to verify whether your changes resolve them. Add `ZP-ID: <issue-id>` (one or more, comma-separated) or paste a ZeroPath dashboard issue URL into the PR body. When the PR scan completes, ZeroPath reports whether each referenced issue was still detected or fixed by the PR. After merge, verified fixes are automatically marked as resolved. No additional settings are required — fix verification activates automatically when issue references are present. See the [PR Scans tab in SAST Overview](https://zeropath.com/docs/scanning/sast-overview.md) for reference format details.

### PR Templates

Open **Remediation** at the organization, tag, or repository scope to customize the appearance of auto-generated fix PRs:

| Template | Description |
| - | - |
| **PR title template** | Custom format for generated PR titles |
| **PR description template** | Custom format for PR descriptions |
| **Branch name format** | Custom format for fix branch names |
| **Commit message format** | Custom format for fix commit messages |

Templates support the following placeholders:

| Placeholder | Available In | Description |
| - | - | - |
| `{issue}` | Branch name | The vulnerability type identifier |
| `{random}` | Branch name | A random alphanumeric suffix for uniqueness |
| `{description}` | Commit message | A short description of the fix |
| `{vulnerability}` | PR title | The vulnerability name |
| `{jira_id}` | Branch name, commit message, PR title, PR description | The linked Jira ticket ID (e.g., `PROJ-123`), when a Jira ticket is associated with the finding |
| `{jira_url}` | Commit message, PR title, PR description | The URL of the linked Jira ticket, when available |
| `{jira_title}` | Commit message, PR title, PR description | The title of the linked Jira ticket, when available |

Jira placeholders are populated automatically when the finding has a linked Jira ticket. If no Jira ticket is linked, the placeholder is omitted.

## Jira Ticket Sync

If your repository has findings linked to Jira tickets, a **Jira ticket sync** section appears in the repository settings. ZeroPath automatically pushes status changes to linked Jira tickets as they happen, but updates can be lost when Jira is unreachable, when a Jira workflow has no closing transition, or when a ticket is modified directly in Jira.

You can review the current differences between ZeroPath finding statuses and their linked Jira ticket statuses on demand:

1. Open the repository from [Repositories](https://zeropath.com/app/repositories), then select **Settings → Remediation**.
2. Under **Jira ticket sync**, click **Review linked Jira tickets** to open a summary of all linked tickets and their sync status.
3. Review the differences and sync them as needed.

The section displays how many findings in the repository are linked to a Jira ticket. If there are no linked tickets, the section is hidden automatically.

> [!NOTE]
>
> Jira ticket sync is only visible for repositories that have at least one
> finding linked to a Jira ticket. Organizations that do not use Jira will not
> see this section.

## Scan Scheduling

Configure recurring scans using **cron expressions**:

1. Open the repository from [Repositories](https://zeropath.com/app/repositories), then select **Settings → Full scans**.
2. Under **When scans run → Repository schedules**, click **Add Scan Schedule** to create a new schedule.
3. Select a **target branch** from the dropdown (defaults to the repository's default branch).
4. Enter a cron expression (e.g., `0 2 * * 1` for every Monday at 2 AM), or use a preset (Weekly, Monthly, Quarterly).

For an organization or tag schedule, open **Full scans → Scan Schedule** at that scope and choose **Configure Schedule** or **Edit Schedule**. Dependency rescans have their own control under **Dependencies → Dependency rescan schedule → Manage Schedule**.

You can create multiple schedules for a repository to scan different branches on different cadences. Each schedule is displayed with its target branch and the estimated time until its next run. When editing an existing schedule, only the cron expression can be changed — the target branch is fixed at creation time. You can also delete individual schedules directly from the schedule list.

The scheduler only creates new work when the branch's head commit has changed since the last scan, avoiding redundant processing. For schedules that cover multiple repositories (such as organization-wide or tag-based schedules), each repository is evaluated independently — an in-progress scan on one repository does not delay or block scheduled scans for other repositories in the same schedule.

If all repositories previously covered by a schedule are removed (for example, because every tagged repository was deleted or untagged), the schedule completes as an empty run rather than failing. The schedule records the attempt time and does not re-queue until its next natural cadence. You can delete the schedule if it is no longer needed.

If a scheduled scan is blocked due to insufficient credits and your organization has credit auto top-up configured, ZeroPath automatically attempts to purchase additional credits before blocking the scan. If the top-up succeeds, the scan proceeds normally. If it fails, the scan is blocked and the error message includes details about both the credit shortage and the top-up failure.

### Bulk Actions and Permissions

When you select multiple repositories from the [repository list](https://zeropath.com/app/repositories) and open the bulk actions menu, ZeroPath checks your permissions across all selected repositories. Actions you cannot perform on the full selection — such as scanning, scheduling, toggling PR settings, or deleting — are disabled with a message explaining the permission requirement. This check runs each time you open the action menu, so your available actions always reflect your current permissions on the selected set.

### Bulk Scheduling

You can apply a scan schedule to multiple repositories at once from the [repository list](https://zeropath.com/app/repositories). Select the repositories you want to schedule, then configure a shared cron expression. Bulk schedules always run on each repository's default branch.

> [!WARNING]
>
> If any selected repository has multiple scan schedules configured, bulk
> editing is disabled. You will see a warning identifying which repositories
> need to be managed individually.

> [!NOTE]
>
> **SCA scans** configured via scheduling run independently of full scans, so
> they can detect dependency vulnerabilities between full scans. Each
> repository's latest dependency scan, scheduled or part of a full scan, is what
> the [Supply Chain page](https://zeropath.com/app/sca) and the **Dependencies**
> tab of the [Issues page](https://zeropath.com/docs/platform/issues.md#dependencies-tab) show.
> Standalone SCA scans apply the same finding lifecycle management as full scans:
> findings are resolved when a package vulnerability is no longer detected,
> re-opened when a vulnerability is re-detected after resolution, and carried
> forward when observation was incomplete (for example, when a manifest could not
> be fully resolved). This keeps dependency findings accurate between full scans.
> Standalone SCA scans also trigger ticket dispatch automatically — when findings
> are reconciled, any configured issue-tracker integration (such as Jira) receives
> the updated findings, keeping your external tracker in sync with dependency scan
> results without requiring a full scan. If reconciliation fails due to a transient
> error, ticket dispatch is deferred and retried automatically.

### History Cutoff

You can configure a **history cutoff date** for a repository to ignore all scan and vulnerability history before that date. This is useful when onboarding an existing repository and you want a clean baseline without inheriting legacy findings from older scans. When a history cutoff is active, full scans will only consider previous scan results created after the cutoff date. The cutoff is also applied during deduplication and dependency analysis, so new findings are not incorrectly matched against issues from before the cutoff.

## Branch Filtering

On a repository's **Issues** tab, the **Branch:** menu limits the findings to one branch, with **Search branch** and **All branches**. It appears for repositories connected to a version control provider. On a repository's **Scans** tab, a branch menu appears when more than one branch has been scanned, beside the **Score** filter. See [Global and repository Issues views](https://zeropath.com/docs/platform/issues.md#global-and-repository-issues-views) and the [repository page](https://zeropath.com/docs/platform/repositories.md#repository-page).

## Dashboard Profiles

The main dashboard supports named **profiles** — saved combinations of a widget layout and filter settings (date range, severity, applications, vulnerability classes, and granularity). Profiles let different team members keep their preferred views without interfering with each other, and org administrators can publish shared templates for the whole organization.

### Switching profiles

A **profile switcher** appears next to the Dashboard heading once profiles have loaded. Click it to see your profiles, org templates, and the option to create a new one. The switcher shows **· edited** when the layout or filters on the page differ from the saved profile.

### Editing a layout

Click **Edit Layout** (top-right of the dashboard) to enter edit mode. In edit mode:

* Drag a widget's header to reposition it on the grid.
* Pull widgets in from the **Add widgets** panel on the right to add them.
* The header shows how many widgets are placed and how many grid cells are in use.

Click **Save profile** to save in place (for your own profiles), **Save as new** to create a new profile from the current state, or **Cancel** to discard the draft. Navigating away while there are unsaved changes prompts you to confirm before leaving.

### Saving filter changes

When you adjust filters (date range, severity, applications) while viewing a saved profile, a notice appears below the filter bar indicating the filters differ from the saved profile. You can:

* **Save to profile** — update the saved profile's filters to match (available when you own the profile or manage org templates).
* **Save as new profile** — keep the current filters as a separate personal profile.
* **Reset** — revert the filters back to the profile's saved values.

### Org templates

Organization administrators can save profiles as **org templates**, making them available to every member. Members who view an org template can adopt its layout by saving it as their own profile via **Save as new profile**. Only members with the manage-templates permission can edit or delete an org template in place.

### Managing profiles

Click **Manage profiles** in the profile switcher to open the profile manager, where you can:

* Open a profile to view it.
* Set a profile as the default (the one that opens when you navigate to the dashboard).
* Duplicate a profile to create a personal copy.
* Delete a profile.

### Default layout

Members who have not yet saved a profile see the **default layout** with a notice offering to save it, start from a blank canvas, or browse org templates (if any exist).

## Application Filtering

You can filter by **application** in two places:

* **Issues page** — use the application filter in the issues toolbar to narrow the issues list to findings associated with specific applications. This is particularly useful for monorepos and repositories where ZeroPath discovers multiple distinct applications (services, modules, or entry points) during scanning.
* **Dashboard** — the main dashboard includes an application filter in the filter controls. Select one or more applications to scope all dashboard widgets to only the selected applications. Filter settings can be saved to a dashboard profile so your preferred scope is restored automatically when you return.

Application filters are scoped to the current organization. Switching organizations automatically resets the application filter.

## Active Filter Display on the Issues Page

The Issues page displays your current active filters as a row of filter rule chips directly above the issue list. Each chip identifies a filter dimension (such as severity, scan type, or status) and its selected value. You can remove individual filters by dismissing their chip, or adjust them through the standard filter controls. This makes it easy to see at a glance which filters are narrowing your results and clear them without reopening the filter panel.

## Repository List

The [Repositories](https://zeropath.com/docs/platform/repositories.md) page ranks your repositories by risk, with their open findings, Fix now findings, exploit evidence and protection status. It sorts by **Risk**, **Open findings**, **Name** or **Last scan**. You can filter by **Severity** (Critical, High, Medium, Low) and **Provider** to narrow the list, and use the search bar to find repositories by name.

### Protection Status

Each repository displays a **Protection** column indicating how well it is covered by ZeroPath's recommended settings. The status is one of:

| Status | Meaning |
| - | - |
| **Protected** | All recommended settings are enabled |
| **Partial** | One or more recommended settings (scheduled scans, PR scanning, PR comments) are missing |
| **Scan failing** | The most recent full scan failed |
| **Not protected** | The repository has never been scanned successfully, or has no code to scan |

The recommended settings are scheduled scans, PR scanning, and PR comments. The PR settings count only for providers that support them. Natural-language fixes are optional and never change the status.

Click the protection status to open a popover showing the five protection settings and their current values:

* **Scheduled scans** — whether a scan schedule is configured, and if so, its cadence
* **PR scanning** — whether PR scanning is enabled
* **PR comments** — whether PR summary comments are enabled
* **Natural-language fixes** — whether natural-language fix generation is enabled
* **Last full scan** — when the repository was last successfully scanned, or the failure reason

When a setting is missing, you can turn it on directly from the popover with a one-click fix (for example, **Set weekly** for scheduled scans or **Turn on** for PR scanning). If the repository is partially protected, a **Turn on recommended** button enables all missing recommended settings at once. A link to the repository's full settings page is available at the bottom of the popover.

One-click fixes are subject to your permissions — fixes are only offered for settings you have permission to change.

## Scan Explorer

To open the scan explorer for a repository's latest full scan, click **Explore latest scan** on the repository page. The **Explorer** link on an issue's previews opens the explorer at that item of the scan that found the issue. See [Scan explorer](https://zeropath.com/docs/platform/scans.md#scan-explorer).

## Scan Optimizations

ZeroPath applies several optimizations to reduce scan time without sacrificing coverage:

* **Identical-commit carry-forward**: When a full scan targets the same commit and discovery-affecting scanner settings as the previous successful scan, all findings are carried forward instantly without re-running the scan pipeline. You will see these scans complete in seconds. Toggling post-processing settings — such as Automatic Runtime Validation, Auto-Provision Runtime Validation, or Codex-enhanced differential scanning — does not invalidate carry-forward, because those settings only prune or annotate findings that discovery already produced. Only changes to settings that affect which vulnerabilities the scan discovers (enabled modules, custom rules, confidence filter, models, etc.) require a fresh scan. The scan explorer automatically resolves carry-forward scans by displaying results from the most recent full analysis of the same commit, so you always see complete scan data even for carried-forward scans.
* **Per-category settings invalidation**: Settings changes are tracked per scanning category. When only rollover-safe settings change (such as dependency analysis configuration, model tier/performance mode, or enabling inventory modules), ZeroPath re-runs the affected category fresh while carrying forward results from other categories like SAST, avoiding a full re-scan. For example, changing an SCA-related setting or enabling an inventory module on an unchanged commit triggers a fresh dependency analysis and inventory pass but preserves prior code findings, rather than re-running the entire scan pipeline. Similarly, changing the model tier or toggling high-performance mode is applied lazily — the new setting takes effect on each repository's next natural scan (code change or scheduled rescan) rather than forcing an immediate full re-scan across all repositories. Prior findings are carried forward in the meantime, so no findings are lost during the transition.
* **Differential scanning**: When enabled in scanner settings, small code changes since the last scan are evaluated using an AI-powered differential rescan rather than re-running the full pipeline. If the diff is too large or the scan is the first for that branch, the full pipeline runs as usual. Dependency manifests and lockfiles are evaluated separately from code changes — when the differential rescan handles the code side, a fresh dependency analysis pass still runs if dependency files have changed, so new CVEs are caught without waiting for the next scheduled full scan.
* **Monorepo patch deduplication**: In monorepos, when multiple SCA vulnerabilities affect the same package in the same manifest file, ZeroPath generates a single fix patch and links it to all related findings, avoiding duplicate fix PRs.
* **Branch-scoped full scan deduplication**: Full scan findings are deduplicated per-branch, so each branch maintains independent issue lifecycle. Resolving an issue on one branch does not affect the same issue on another branch.
* **Automatic PR scan cancellation**: When you push a new commit to a pull request or merge request, ZeroPath automatically cancels any in-progress PR scans for older commits on that same PR. This prevents wasted work on outdated code and ensures only the latest commit is scanned. This applies across all supported version control platforms (GitHub, GitHub Enterprise Server, GitLab, Bitbucket, Azure DevOps Services, and Gerrit).
* **Responsive full scan cancellation**: When you cancel a full scan, the cancellation takes effect during long-running phases such as repository model building and call graph construction, not only between phases. This means cancellation requests are honored within seconds rather than waiting for an entire phase to complete.
* **PR scan deduplication scoping**: PR scan findings are deduplicated only against full scan baselines and rescans of the same PR — never against findings from other pull requests. This prevents cross-branch contamination where a finding from one PR could incorrectly suppress or inherit state from an unrelated PR.
* **Deleted file resolution**: When a file containing an open SAST or Secrets finding is deleted from a branch, ZeroPath automatically resolves that finding during the next full scan of the same branch. Other finding types (such as IaC, CI/CD, EoL, and dependency findings) are not resolved this way. The scanner checks the repository's Git history, looking back to the revision where the finding was detected rather than only to the previous scan, and resolves the finding when that history confirms the file was deleted. This runs before other finding reconciliation steps, so carried-forward findings on deleted files are not re-opened or duplicated. Findings are only resolved when the deletion is confirmed through Git history. If a recorded revision cannot be read (for example, because it was force-pushed away or is beyond the clone depth), every later scan reads the same revision, so deleted-file resolution leaves that finding open on every later scan rather than only until the next one.
* **Contributor attribution refresh**: When an existing finding is re-detected on a subsequent full scan, ZeroPath refreshes the git blame attribution and code location data for that finding. This keeps contributor information and line numbers accurate as your codebase evolves, without creating duplicate entries.
* **SCA warning consistency across scan types**: SCA-related warnings — including missing lockfile notifications, dependency resolution failures, unresolved transitive dependencies, and zero-results anomalies — are surfaced after both full scans and standalone SCA scans. Full scans additionally detect zero-results anomalies, where a manifest file was discovered but dependency resolution produced no results, which may indicate a misconfigured or empty dependency file. Any SCA warnings detected during a scan are reconciled and visible in the dashboard immediately, and warnings that no longer apply are automatically cleared on the next successful scan.
* **Secrets scan incomplete warnings**: When secrets scanning runs but does not finish (for example, because the repository is very large and scanning was cut short), ZeroPath surfaces a **Secrets scan incomplete** warning in the dashboard. The warning includes a reason describing why coverage was truncated. It is only cleared when a subsequent scan's secrets phase completes successfully — a scan where secrets scanning crashed or was skipped cannot clear the warning, because such a scan made no observation about whether the repository is clean. This prevents a secrets scanner failure from being misread as a clean result.
* **Finding preservation on resolution failure**: When dependency resolution fails for a manifest file during a scan, ZeroPath carries forward existing SCA findings from that manifest instead of marking them as resolved. This prevents confirmed or open dependency vulnerabilities from being incorrectly auto-resolved due to a transient resolution error. The same protection applies when a scan path does not execute the dependency analysis pipeline — SCA findings are only resolved when the SCA analyzer actively confirms they are no longer present. Similarly, when a SAST deep investigation is skipped for a file (for example, during an abbreviated or lightweight scan), existing SAST findings on that file are carried forward rather than auto-resolved. Files whose analysis could not complete during any scan mode — including abbreviated and lightweight scans — are tracked and protected from auto-resolution, even when the full investigation pipeline did not run. Findings are only resolved when the investigation pipeline actively confirms they are no longer present, so scan modes that skip deep analysis cannot silently drop real vulnerabilities. Confirmed true-positive findings that are carried forward also have any stale auto-resolution state cleared, ensuring they appear with the correct status on the dashboard rather than being incorrectly shown as resolved. When the SAST discovery tool itself fails during a scan, existing SAST findings are also carried forward rather than being auto-resolved — a tool-level failure is not evidence that a vulnerability was fixed. Likewise, existing SAST findings on paths that match your configured [scan location exclusions](#path-whitelist-blacklist) are carried forward rather than auto-resolved when those paths are excluded from SAST during a scan — an exclusion is not evidence that a vulnerability was fixed. Zero-results anomaly warnings (where a manifest was discovered but dependency resolution produced no packages) are now also included in the set of manifests shielded from auto-resolution, closing a gap where these anomaly signals were not reaching the carry-forward gate.
* **Minified file handling**: When code snippets from files with very long lines (such as minified JavaScript or bundled assets) are sent for AI analysis, ZeroPath automatically truncates individual lines to prevent them from consuming the analysis context window. Large code ranges are also capped at a total character limit, so requesting a wide line range from a dense file does not blow out the analysis budget. The full, unmodified code is preserved in the database and UI — only the AI-facing copy is trimmed.
* **IaC path correction**: When an IaC scanner reports a finding with a file path that does not match the repository layout (for example, a Helm chart template path relative to the chart name instead of the repo root), ZeroPath automatically searches for the correct file and adjusts the path. If the path cannot be uniquely resolved, the finding is skipped rather than surfaced with an incorrect location.
* **Manual scan prioritization**: User-triggered scans are prioritized over scheduled scans in the processing queue. A large batch of scheduled scans will not delay your interactive scan requests.

## Finding Priority Scores

Each finding receives a priority score on a 0–100 scale, calculated from its severity and the confidence that a validation agent assigned to it. Validated findings — those that an agent has assessed — score **severity × confidence**, giving them a full-range score that reflects both how dangerous the vulnerability is and how confident the platform is in the result.

Unvalidated findings — those that no agent has yet assessed — score on a reduced 0–10 scale (severity only), so they always rank below validated findings with meaningful confidence. This ensures that agent-confirmed results surface first in your issue lists and dashboards, while unvalidated findings remain visible but do not crowd out higher-confidence results.

Score thresholds throughout the platform (check failure threshold, comment visibility threshold, patch threshold, and PR threshold) all operate on the same 0–100 scale.

## Patch Variants

When regenerating a patch using the **Adjust Patch** workflow, you can request multiple alternative fix approaches at once. ZeroPath generates up to three distinct patch variants — each using a different strategy to resolve the vulnerability — and presents them as candidates for you to review. You select the variant you want to promote, which creates the patch and discards the alternatives.

This is useful when the initial patch does not fit your codebase's patterns or when you want to compare trade-offs between approaches before committing to one. You can also provide free-form feedback (up to 4,000 characters) when requesting regeneration to guide the patch agent toward a specific approach.

SCA fixes (version bumps in dependency manifests) always produce a single patch regardless of how many variants are requested, since the correct version is deterministic.

### Patch Submission States

After a patch is promoted and a fix PR is being opened, you can track progress through the following states shown on the finding:

| State | Meaning |
| - | - |
| **Queued** | The fix PR has been accepted and is waiting to be submitted to your version control system. |
| **Submitting PR** | ZeroPath is actively opening the pull request. |
| **Retrying** | A transient error occurred; ZeroPath is automatically retrying the submission. |
| **Submission failed** | The submission failed and cannot be automatically retried. A specific explanation is shown alongside a **Retry** button so you can re-attempt once the underlying issue is resolved. |
| **Cancelled** | The submission was cancelled before it completed. You can request it again. |
| **PR opened** | The fix PR was successfully opened in your repository. |

When a submission fails, the panel displays a specific reason describing what needs to change before retrying:

| Failure reason | What it means | What to do |
| - | - | - |
| **Fork pull request** | The finding is on a PR from a fork repository; ZeroPath cannot push to a contributor's branch. | Apply the patch manually, or ask a maintainer to open a branch on the main repository. |
| **Repository archived** | The repository is archived and read-only. | Unarchive the repository, then retry. |
| **Missing push credentials** | No stored push credentials exist for this repository. | Reconnect the repository through your GitHub, GitLab, Bitbucket, or Azure DevOps integration, then retry. |
| **Repository not linked** | The repository is not linked to a supported version control provider. | ZeroPath cannot open a PR without a VCS connection. |
| **Target branch not found** | The branch this patch targets no longer exists in the repository. | Regenerate the patch against the current branch. |
| **Retries exhausted** | PR creation failed repeatedly and automatic retries have stopped. | Review the last error shown, fix the underlying problem, then retry manually. |
| **Request expired** | This request was never processed due to a platform issue and has expired. | Press **Retry** to resubmit. |

## Remediation Guidance

When ZeroPath determines that a vulnerability cannot be automatically patched, it provides remediation instructions alongside the reason the patch could not be generated. You can find these instructions on the vulnerability detail page to guide manual resolution.

For container image findings, ZeroPath can generate fix patches by editing the repository's Dockerfile. When a vulnerable package originates from the base image, the patch bumps the `FROM` tag to a newer stable release of the same distribution that ships the fixed package. When the package was installed by an application build step (a `RUN` instruction), the patch upgrades or pins the package version in that step. If no Dockerfile can be located or no safe edit is possible, remediation instructions are provided instead.

## Initial Repository Indexing

When you add a new repository and trigger its first scan, the scan status displays as **Indexing** instead of the usual in-progress status. This indicates that ZeroPath is performing first-time analysis of the repository, which typically takes longer than subsequent scans because the full codebase must be processed from scratch. Once the first scan completes successfully, future scans display standard progress statuses.

## Scan Error Reporting

When a scan fails, ZeroPath displays the actual error message describing what went wrong rather than a generic failure notice. You can view these messages in the scan status to understand whether the issue is transient (e.g., a timeout or connectivity problem) or requires action on your part (e.g., invalid repository configuration). Error messages from all scan stages — including SAST and SCA sub-scans — are surfaced directly, giving you full visibility into what failed without needing to contact support.

When the most recent full scan for a repository failed, a warning banner appears directly on the repository detail page. The banner identifies the failure category and shows the relevant scan branch name. Three distinct situations are covered:

| Situation | What you see | Recovery action |
| - | - | - |
| **Repository access needs attention** | The scan could not connect to the repository | A **Review Git connections** link opens the Integrations settings page so you can inspect or reconnect the affected Git provider |
| **Scan branch unavailable** | The configured scan branch no longer exists or could not be checked out | A **Review scan branch** link opens the repository's Settings tab where you can update the target branch |
| **Latest full scan failed** | The scan ran but encountered an error | The banner shows the failure message and a **Scan explorer** link to the full scan report |

If the repository has no commits yet, an informational notice is shown instead (not a warning), indicating that scanning can begin once code is added. In all cases, a **Scan explorer** link is available so you can navigate directly to the failed scan's report for the complete error context. Existing findings from earlier scans remain visible while the repository's scan status is in a failed state.

For self-hosted Git instances (such as GitHub Enterprise Server or self-managed GitLab), ZeroPath classifies repository connectivity failures and displays a specific message for each:

| Error | What it means | What to do |
| - | - | - |
| **Host name not resolvable (DNS)** | ZeroPath could not resolve the repository host's DNS name. | Check the host name in your instance's connection settings and confirm the host resolves from ZeroPath's network. |
| **TLS certificate verification failed** | The repository host's TLS certificate could not be verified. | For GitHub Enterprise Server, provide the CA bundle in its connection settings. For GitLab, arrange certificate trust with your deployment administrator or support; the GitLab setup dialog has no CA upload field. See [GitLab network and TLS requirements](https://zeropath.com/docs/integrations/gitlab.md#network-and-tls). |
| **Host unreachable** | The repository host refused or dropped the connection. | Check that the host is online and that its network allows connections from ZeroPath. |
| **Clone timeout** | Cloning the repository timed out before completing. | This usually means the repository is very large or the host is slow to respond. Contact support if it keeps happening. |

These messages replace the generic "An unknown error occurred" notice that was previously shown for git connectivity issues, so you can diagnose and resolve the problem without contacting support.

When an SCA scan fails because a configured private package registry is unusable (for example, due to a blocked host, invalid credentials, or a corrupted stored secret), ZeroPath surfaces an actionable error message that identifies the problem and what you need to do — such as re-entering credentials — rather than a generic failure. This applies to org-level private package registry connections configured under **Settings → Integrations → Registries**.

## Scan Retry Resilience

If a scan is interrupted and needs to restart (for example, due to a transient infrastructure issue), ZeroPath automatically recovers from the previous attempt without creating duplicate findings. The platform detects which results were already persisted before the interruption and resumes from where it left off, so you do not see duplicate findings or missing data after a scan retry. When a batch of results encounters a conflict with previously persisted data, the platform retries each operation individually so that non-duplicate results still land successfully. Transient database errors during result persistence are automatically retried with exponential backoff before surfacing a failure, further reducing the chance of scan errors caused by brief connectivity issues. This recovery works reliably even for large repositories with thousands of findings.

If a scan worker becomes unavailable (for example, due to scaling or a transient failure), any scans that were assigned to it are automatically reassigned to a healthy worker. This reassignment runs continuously, so scans do not remain stuck waiting for a worker that is no longer available. Active scans that cannot be safely reassigned are marked as errored so they can be retried.

Full scans that are interrupted by worker restarts can automatically recover up to three times, replaying the scan pipeline from the beginning on each attempt. If a full scan exhausts its recovery budget, it is marked as errored with a specific message describing why it was abandoned (for example, "exceeded max resume age after repeated worker restarts"), so you can see the actual reason in the dashboard rather than a generic failure notice. Additionally, if the scanning pool is scaled down and a full scan was assigned to a worker that no longer exists, the platform automatically detects the stranded scan after a grace period and marks it as errored with a clear message, rather than leaving it stuck indefinitely. Stale full scans that remain unfinished beyond the configured threshold are also automatically cleaned up, consistent with existing PR scan behavior.

## Issue Status Preservation

When a scan refreshes issue statuses, ZeroPath preserves manual workflow states you have set. If you move an issue to **Reviewing** or **Backlog**, subsequent scans will not reset it — even when the finding's validation state is unknown. A finding that a human has explicitly triaged into a manual workflow status keeps that status, because the manual triage represents a deliberate decision that outranks an inconclusive automated verdict. Statuses driven by automated actions — such as archived, silenced, false positive, or patching — continue to update normally based on the latest scan results. Findings with pending auto-generated patches correctly reflect a **Patching** status rather than being downgraded to Informational, and carry-forward scans recompute issue statuses from the final finding state to prevent stale status values from persisting across scans.

The issue timeline (the audit log shown on each finding's detail page) now records workflow stage transitions with their exact status names. Moving an issue to **Reviewing**, **Patching**, or **Backlog** appears in the timeline as a distinct entry for that stage, rather than being shown as a generic "Open" entry. This makes the audit trail easier to read: each entry clearly reflects the decision that was made, so reviewers can tell at a glance whether a status change was a re-open, a triage action, or a workflow progression.

A finding that an agent reviewed and determined to be **non-exploitable** (shown as **Non-Exploitable**) retains that status even when a later scan stops reporting the finding. Absence from a scan is an inference — the scanner did not see the finding — while a non-exploitable verdict is a positive conclusion reached by reading the code. The non-exploitable verdict takes precedence, so a disconfirmed finding stays Non-Exploitable rather than flipping to Resolved. Only an explicit resolution event — such as a merged fix PR or a manual resolution — moves a non-exploitable finding to Resolved. This prevents remediation metrics from crediting a code change that never happened.

When you resolve an issue, any silenced state on that issue is automatically cleared. If you need to reverse an accepted-risk (archived) decision, you must unarchive the issue before resolving it — resolving alone does not undo an archive. When you unresolve or reset an issue that was previously marked as no longer detected, the "no longer detected" state is fully cleared alongside other status fields, restoring the issue to an active state.

### False Positive Context Requirement

Organizations can require users to provide a reason when marking issues as false positives. When this requirement is enabled, the false positive dialog checks your team's policy upfront and clearly indicates that context is required before you can submit. If you attempt to mark an issue as a false positive without supplying a non-empty reason, the submission is blocked. This ensures that triage decisions are documented and auditable, making it easier for other team members to understand why a finding was dismissed.

### Triage Feedback Tab

Each repository includes a **Feedback** tab that surfaces every human triage rationale recorded against the repository's findings. This gives you a centralized view of all triage decisions — not just false positives, but every disposition including non-exploitable, true positive, accepted risk, severity changes, and more.

You can filter the feedback list by disposition type using the filter chips at the top of the tab. By default, all disposition types are shown, and you can narrow the view by toggling individual filters. The **Needs review** disposition (previously labeled "Pending review") identifies findings that have been flagged for additional triage but not yet resolved.

The **Non-exploitable** disposition is treated as a final settled verdict — the same as False Positive or Accepted Risk. Marking a finding as Non-exploitable removes it from the open issues queue immediately, rather than leaving it in a pending state. This applies whether the disposition is set by a human or an automated agent.

Each feedback entry displays the disposition, the rationale provided by the triager, the associated finding, and when it was recorded. You can click through to the linked finding for full details.

You can also **edit** any feedback entry inline to re-word the rationale or change the disposition. Saving an edit records a new audit-safe triage entry, preserving the full history of triage decisions. A rationale is required when saving edits.

## AppSec Assistant

When the AppSec Assistant is enabled for a repository, an AI-powered chat interface is available for asking security-related questions about your codebase and requesting automated actions on findings.

### Repository-Scoped Runs

When a conversation starts from an issue or from a pull request or merge request comment, or when a schedule scoped to selected repositories or tags runs, the assistant operates in **repository-scoped mode**. In this mode:

* The assistant can only access the repositories listed in the run's scope. The platform enforces this restriction — requests for data outside the selected repositories are blocked.
* Only ZeroPath platform tools are available — code search and read, issue and scan lookups, triage updates, patches, and pull requests — each limited to the selected repositories. Shell commands, web browsing, and organization administration tools are not available.
* Shared organization memory and custom MCP servers are not available.

Repository-scoped runs are suitable for code review questions, targeted triage, and repository-specific security investigations. For tasks that span your entire organization — such as bulk triage, Slack reporting, or cross-repository analysis — use a standard (organization-wide) conversation.

### Planning Mode

Before executing a complex or irreversible action, the assistant can propose a plan for you to review and approve. A plan includes:

* **Steps** — the ordered list of actions the assistant will take, each checkable when complete.
* **Scope** — which repositories, severities, or findings the run will touch, so you can evaluate its reach before committing.
* **Risks** — anything that cannot be undone, stated explicitly. If nothing is irreversible, the plan says so.

The assistant proposes a plan automatically when a request both changes state and either spans several distinct operations or does something irreversible (such as opening pull requests, bulk-updating findings, or posting outside the conversation). Simple questions, lookups, and single reversible edits are answered directly without a plan.

You can also tick **Plan first** on any message to require a plan regardless of the task's complexity. In that mode, the assistant always calls out a plan and stops — it does not begin executing until you approve. If the task is genuinely trivial, the plan says so rather than padding it with unnecessary steps.

When **Plan first** is ticked, until you approve the plan the assistant has access only to read operations — it can look up issues, scan results, and code, but cannot make changes. Write tools become available only once you approve the plan and execution begins. **Plan first** applies to all conversations, including those that originated in Slack and are continued from the web.

When you approve a plan, the assistant proceeds with the agreed steps. Approving is the only way work begins when a plan has been proposed.

### Scheduling and Trigger Suggestions

When proposing a plan, the assistant also considers whether a one-off run is really what you need. For recurring or reactive requests, the plan includes suggestions for the more durable form:

| Suggestion type | When it applies |
| - | - |
| **Cron schedule** | The request has a cadence ("every Monday", "weekly", "keep an eye on"). The suggestion includes a concrete schedule expression. |
| **Event trigger** | The request is reactive ("whenever a new critical finding lands", "when a scan finishes"). The suggestion identifies the event to trigger on. |
| **Playbook** | An existing playbook already covers the workflow. The suggestion offers to activate it with the right parameters. |
| **Run once** | The request is genuinely a one-off. The assistant confirms this rather than inventing a cadence. |

Suggestions are advisory — you choose the form you want, and nothing is created until you confirm.

### Scheduled Run Safeguards

Scheduled assistant runs (created from cron schedules or event triggers) include built-in safeguards to ensure reliable execution:

* **Runtime limit** — each scheduled run is capped at two hours. If a run exceeds this limit, it is automatically stopped and marked as failed with a clear message indicating the timeout.
* **Completion verification** — when a scheduled run finishes, the platform verifies that the run produced a structured completion result including a status and summary. Runs that exit without reporting their outcome are marked as failed rather than silently shown as completed.
* **Slack delivery confirmation** — for scheduled runs that include a required Slack report (such as recurring status updates or alert summaries), the platform confirms that the Slack message was actually delivered. If the run reports that a post was required but no confirmed delivery is detected, the run is marked as failed so you know the report did not reach its destination.

These safeguards apply automatically to all scheduled runs — no additional configuration is required.

#### Repository-scoped scheduled runs

Scheduled runs scoped to specific repositories behave differently from organization-wide cron runs:

* The run produces its report in an isolated workspace. The platform automatically saves the report to the conversation activity feed when the run completes, so the output is visible in the assistant conversation even though the temporary workspace is deleted afterward.
* Previous run reports and shared organization memory are not available. Each run starts fresh.
* If the Assistant has a Slack channel configured in its settings, the platform delivers the final summary there; if delivery fails, the run is marked failed. The assistant does not call Slack tools directly.

Organization-wide scheduled runs continue to use persistent storage under a named cron directory, and previous run reports are provided automatically as context for continuity.

### Skills

The assistant uses your organization's enabled skills when determining how to approach a task. Skills are configured under **Configure → [Skills](https://zeropath.com/app/agent?tab=skills)** on the Assistant page and represent reusable, organization-specific guidance that shapes the assistant's behavior. When a skill applies to a request, it is listed in the plan's **skills used** field so you can see which guidance informed the proposed approach.

## Scan Scope Controls

### Directory Partitions (Monorepo Support)

Split a connected repository into directory partitions when teams need separate findings, scanner settings, or scan schedules. Open **Repositories → Monorepos**, or the repository's **Settings → General → Monorepo configuration**.

See [Monorepo partitions](https://zeropath.com/docs/platform/monorepos.md) for setup, directory path rules, the fallback partition, and how full scans and PR scans use the scope.

### Custom Sources & Sinks

You can define custom source and sink declarations to teach ZeroPath about security-relevant entry points and sensitive operations specific to your codebase. Manage these from the dedicated [**Sources & sinks**](https://zeropath.com/app/custom-markers) page (**Settings**, under **Scanner**), which is organized into four tabs:

* [**Custom Sources**](https://zeropath.com/app/custom-markers?tab=sources) — declarations for security-relevant data entry points in your code.
* [**Custom Sinks**](https://zeropath.com/app/custom-markers?tab=sinks) — declarations for sensitive operations where tainted data should not reach.
* [**Library**](https://zeropath.com/app/custom-markers?tab=library) — browse and enable pre-built **Source Packs** and **Sink Packs** published by ZeroPath that cover common frameworks and libraries.
* [**Automation**](https://zeropath.com/app/custom-markers?tab=automation) — organization-wide controls for **Auto-include custom sources**, **Auto-include custom sinks**, and **Auto-create custom sources**.

Each declaration includes a **name**, a natural language **description** that the scanning engine uses to identify instances in code, an optional **glob pattern** for file scope, and a **scope** that controls which repositories the declaration applies to. You can also assign **tags** for organization.

Declarations support the same three scope types as custom rules:

| Scope | Description |
| - | - |
| **All repositories** | Applies to every repository in the organization |
| **Repositories** | Applies to a specific list of repositories |
| **Tags** | Applies to all repositories that carry the selected tags |

When creating or updating a declaration via the API, you can pass an explicit `scope` value of `allRepositories`, `repositories`, or `tags`. When `scope` is `repositories`, also supply a `repositoryIds` array. When `scope` is `tags`, supply a `tagIds` array with at least one tag ID. When `scope` is omitted, the historical behavior applies: a non-empty `repositoryIds` scopes to those repositories. On create, an absent or empty `repositoryIds` applies to all repositories. On update, an empty `repositoryIds` resets the declaration to all repositories, and leaving `repositoryIds` out keeps the current scope. The API response includes a `scope` field indicating the declaration's current scope type.

When you create or update a custom source or custom sink declaration, ZeroPath automatically validates the description using AI to ensure it describes a legitimate security-relevant data entry point (for sources) or sensitive operation (for sinks). If the description is ambiguous, nonsensical, or does not match the declared type, the platform rejects the declaration with a specific reason. This validation runs on both create and update operations whenever the description field changes.

Deleting a custom source or sink requires confirmation. Existing findings from the deleted declaration retain their data but lose the link back to the declaration.

### Path Whitelist / Blacklist

Open [**Scan locations**](https://zeropath.com/app/locations) to manage **scan location sets** and control which files are included or excluded during full scans. Each location set includes a name, optional description, and two pattern lists:

* **Whitelist patterns** — only scan files matching these patterns.
* **Blacklist patterns** — exclude files matching these patterns.

Blacklist patterns are applied during file discovery, before any analysis begins. Files that match a blacklist pattern are fully excluded from SAST scanning — they are not included in call graph construction or deep code analysis.

#### Pattern syntax

Patterns follow gitignore-style glob rules:

| Syntax | Behavior | Example |
| - | - | - |
| `*` | Matches any sequence of characters within a single directory level | `*.min.js` matches `dist/app.min.js` |
| `**` | Matches across any number of directory levels | `**/tests/**` matches `src/foo/tests/bar.py` |
| `?` | Matches any single character within a directory level | `config.?.json` matches `config.a.json` |
| `[...]` | Matches any one character in the bracket set | `file[0-9].py` matches `file3.py` |
| No slash in pattern | Matches the file's basename only, regardless of directory | `*.log` matches `logs/app.log` and `app.log` |
| Trailing `/` | Matches everything under that directory (equivalent to `dir/**`) | `vendor/` matches `vendor/lib/foo.js` |
| Leading `/` | Anchors the pattern to the repository root | `/scripts/build.sh` matches only `scripts/build.sh` |

Location sets support three scope types:

| Scope | Description |
| - | - |
| **All repositories** | Applies to every repository in the organization |
| **Repositories** | Applies to a specific list of repositories |
| **Tags** | Applies to all repositories that carry the selected tags |

When creating or updating a location set via the API, pass a `scope` value of `allRepositories`, `repositories`, or `tags`. When `scope` is `repositories`, also supply a `repositoryIds` array containing at least one repository ID. When `scope` is `tags`, supply a `tagIds` array with at least one tag ID. When `scope` is `allRepositories`, `repositoryIds` must not be included. Patterns can be entered one at a time or in bulk using the **Bulk Edit** toggle. Deleting a location set requires confirmation.

## SCA Fix PR Conflict Resolution

When ZeroPath creates a pull request to fix a vulnerable dependency, the base branch may receive new commits that conflict with the fix branch. ZeroPath automatically detects and resolves these conflicts:

* **Lock file conflicts** are resolved by regenerating the lock file using a sandboxed package manager execution.
* **Manifest conflicts** are resolved by re-applying the version bump on the latest base branch and regenerating lock files.
* **Code conflicts** (non-dependency files) require manual resolution.

This keeps auto-generated fix PRs mergeable without manual intervention in most cases.

## Configuring Settings

### From the Dashboard

Choose the scope before changing a setting:

* **Organization defaults:** open [Settings → Scanner settings](https://zeropath.com/app/scanner?scope=organization).
* **Tag overrides:** open [Scanner settings → Tag overrides](https://zeropath.com/app/scanner?scope=tags) and expand the tag settings group. To jump to a specific tag, open [Settings → Repository tags](https://zeropath.com/app/settings/tags) and select **Scanner settings** on its row.
* **Repository overrides:** open [Repositories](https://zeropath.com/app/repositories), select a repository, then open its **Settings** tab. Its URL is `https://zeropath.com/app/repositories/{repositoryId}?tab=settings`, with your repository's ID in place of `{repositoryId}`.

At each scope, use these categories. The links in this table open organization defaults; choose the same category inside a tag group or repository's Settings tab for overrides.

| Category | Where to find controls |
| - | - |
| [**General**](https://zeropath.com/app/scanner?scope=organization\&category=general) | Scanner defaults and scope-wide options; repository-specific branch, monorepo, and reset controls |
| [**Full scans**](https://zeropath.com/app/scanner?scope=organization\&category=fullScans) | Scan triggers, schedules, issue types, confidence, and runtime validation |
| [**Pull requests**](https://zeropath.com/app/scanner?scope=organization\&category=prScans) | PR scanning, issue types, check thresholds, timeouts, and comments |
| [**Dependencies**](https://zeropath.com/app/scanner?scope=organization\&category=dependencies) | SCA settings, dependency rescans, and dependency fix PRs; repository dependency scan branches |
| [**Remediation**](https://zeropath.com/app/scanner?scope=organization\&category=remediation) | Full-scan and PR patch generation, fix PR templates, and repository Jira ticket sync |

Available controls depend on your permissions, repository provider, and enabled features. Each control saves independently; use **Save** or the schedule dialog's save action when shown. Saved scan settings apply to subsequent scans.

### Per-Setting Permissions

Repository settings enforce fine-grained permissions at the individual setting level. If you do not have permission to modify a particular setting, that setting's controls (toggles, inputs, buttons) are disabled and a message explains why access is restricted. This applies to all repository-level settings including scanner toggles, scan schedules, monorepo partitions, dependency settings, remediation options, PR templates, and danger zone actions like resetting settings or deleting a repository.

Permission checks are performed automatically when you open a repository's settings page. If the permission check itself fails (for example, due to a network issue), a retry option is displayed so you can re-check without reloading the page. Settings you can view but not modify still display their current effective values, so read-only access to configuration is always available.

### Issue Export Options

When exporting issues via the API, you can customize the output with additional options:

* **Export filter overrides** — narrow the export to specific severity levels, statuses, or detection types without changing your saved filter configuration. If any override array is empty, the export returns no results for that dimension.
* **SARIF options** — control whether the export includes `preconditions` (exploitability factors the scanner could not fully verify) and `attackSteps` (step-by-step exploit walkthroughs) for each finding. Both are omitted by default to keep export payloads compact.

### From the API

Scanner settings can be read and updated via the v2 API:

```bash theme={null}
# Get settings for a repository
curl -X POST https://zeropath.com/api/v2/scannerSettings/get \
  -H "Content-Type: application/json" \
  -H "X-ZeroPath-API-Token-Id: your-token-id" \
  -H "X-ZeroPath-API-Token-Secret: your-token-secret" \
  -d '{"organizationId": "your-org-id", "repositoryId": "your-repo-id"}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.