> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/application-security/settings/application-security-settings/scan-settings/custom-scan-configurations.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Custom scan configurations

Give a repository its own scan settings when the tenant baseline does not fit it — for example, to turn off a scanner that produces noise in a test repository, or to block pull requests on scan errors only in high-risk repositories. Custom settings contain the same sections and options as Global Scan Configuration, applied to one repository.

#### Permissions

Custom settings require the Application Security add-on, access to Data Sources, and the Asset Inventory permission.

### Open a repository scan configuration

1. Go to **Data Sources & Integrations** and select the vendor of the version control integration that onboarded the repository, for example GitHub.
2. Select the instance that onboarded the repository. The instance page opens with a list of onboarded repositories.
3. Right-click a repository and select **Scan Configuration**.\
   The Custom tab is presented.
4. Change settings as required and select **Save**. For details about scan settings refer to [Global scan configurations](https://cortex-docs.paloaltonetworks.com/application-security/settings/application-security-settings/scan-settings/global-scan-configurations.md).

#### Tips - When to use custom repository settings:

* **Scan pull requests**: Select for production-bound repositories. Pull request scanning is the earliest point where a policy can block a finding
* **Fail PR on scan error**: The repository is high-risk and a failed scan must not let changes merge unchecked
* **Git history scan**: Secrets may have been committed and later removed. Expect longer scans on large histories
* **Secret validation**: You want active secrets prioritized over revoked ones
* **Scanner OFF** : The repository holds no code of that kind, or holds only test fixtures that the scanner would report. Prefer Exclude paths when only part of the repository is noisy

To apply one configuration to several repositories, select them in the repositories table and choose Scan Configurations from the selection's actions.

#### Return a repository to the global baseline

1. Open the repository's Scan Configuration dialog.
2. Select **Global** and **Save**.\
   The repository follows the baseline again from the next scan.

#### Defaults for new repositories

A newly onboarded repository starts with settings that depend on the license and the integration type, and whether your tenant lets new repositories follow the global baseline..

* **Version control repository, Application Security add-on**: Set to Global. The repository follows the Global Scan Configuration baseline
* **CI/CD scanning integration**: IaC and pull request scanning on; SCA, secrets detection, Git history scan, and tag blocks off
* **No Application Security add-on**: Every scanner off, and Scan pull requests off

Repositories onboarded before the Application Security add-on was enabled start with every scanner off.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/application-security/settings/application-security-settings/scan-settings/custom-scan-configurations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
