> 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/code-security/application-security-scans-management/manage-scans-through-the-tenant-ui/manage-repository-scan-configurations.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Manage repository scan configurations

Each repository follows either the tenant baseline on **Global Scan Configuration** (**Global** mode) or its own settings (**Custom** mode). Give a repository custom settings only when the baseline does not fit it, because a Custom repository no longer receives baseline changes. To set the baseline, see [Scan settings](https://cortex-docs.paloaltonetworks.com/application-security/settings/application-security-settings/scan-settings.md).

To access repository scan configurations:

1. Select **Settings** → **Data Sources & Integrations** and search for the provider.
2. Select the relevant provider. You can see all the instances and their statuses.
3. Select an instance. The instance repositories and their statuses are displayed (including scan coverage).

   Scan coverage indicates the scan engines that run against the repository, such as IaC, SCA, and Secrets.
4. Right-click on a selected repository and select **Scan Configuration**.
5. Select **Custom**. In Global mode the settings are read-only and the dialog shows Settings locked. The dialog then warns that global configuration updates will no longer apply to this repository.
6. Configure scan settings:
   * **Active Scanners**:
     * **Enable or disable Code Security scanners** (IaC, SCA, Secrets)
     * **Enable or disable Git history scans** to automatically detect secrets still present in a repository’s past commits. By identifying these exposed credentials, you can proactively address risks and prevent potential data breaches
     * **Enable/disable secrets validation** to check a detected secret’s activity status via public APIs. This allows you to prioritize and address only active, exposed secrets. Secrets validation scanning is available through the Cortex Cloud tenant and IDE extensions.
   * **PR Scanning**:
     * **Scan PR**: Enable security scans to automatically trigger on a pull request (PR) to identify potential security risks or misconfigurations before the code is merged
     * **Fail PR on scan error**: Enable pull requests (PRs) to automatically fail on a scan error. This prevents security risks and misconfigurations from being merged
   * **Tagging Bot**: Enable to automatically append a unique `yor_trace` ID to resource and module blocks when a pull request is opened. This identifier enables precise code-to-cloud tracing throughout the software development lifecycle
   * **Exclude Path**: Specify the files and directories to exclude from scanning.
     * **Exclude directories**: Enter folder names to exclude all files inside, such as `node_modules/`, `tests/`, `dist/`
     * **Exclude files by pattern**: Use wildcards: `*` for any number of characters, `?` for a single character
       * `.*.log`: Excludes all log files
       * `*.min.js` Excludes all minified JavaScript files
     * **Use a Comma-Separated List**: Separate multiple exclusions with commas. For example, `node_modules/`, `dist/, docs/`)
     * **Avoid leading slashes**: Use `dist/`, `not /dist/`
7. Click **Save**.

To return a repository to the baseline, select **Global** and save. To apply one configuration to several repositories, select them in the repositories table and choose Scan Configurations. For both procedures and the permissions they require, see [Scan settings](https://cortex-docs.paloaltonetworks.com/application-security/settings/application-security-settings/scan-settings.md).


---

# 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/code-security/application-security-scans-management/manage-scans-through-the-tenant-ui/manage-repository-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.
