Configure ProjectFilterRegex - checkmarx-ts/CxAnalytix GitHub Wiki
Filtering by Team and/or Project
This feature is available as of version 1.2.3.
The optional ProjectFilterRegex
configuration element can be used to limit the scope of the data crawl to only those scans with code that is used in production. The filtering is performed using a regular expression to evaluate Team and Project path such that the values of each must match a provided regular expression. If this element is not included in the configuration file, all scans are crawled and exported.
An example of the ProjectFilterRegex
element:
<ProjectFilterRegex Team="^((?!AppSec).)*$" Project="master"/>
In this example, scans are exported that meet the following criteria:
- The team does not contain the word "AppSec" anywhere in the team path.
- The project name contains the word "master".
The filter attributes are optional; if no expression is provided for an attribute, no match evaluation is performed.
Attribute | Description |
---|---|
Team | Optional A regular expression that is used to evaluate the team path to which a project is assigned. If this attribute is not set, all teams are assumed to match. |
Project | Optional A regular expression that is used to match the project name. If this attribute is not set, all projects are assumed to match. |