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.
To access repository scan configurations:
Select Settings → Data Sources & Integrations and search for the provider.
Select the relevant provider. You can see all the instances and their statuses.
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.
Right-click on a selected repository and select Scan Configuration.
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.
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_traceID to resource and module blocks when a pull request is opened. This identifier enables precise code-to-cloud tracing throughout the software development lifecycleExclude 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.jsExcludes 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/
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.
Last updated
Was this helpful?
