Using Maven
CI/CD Integration - Using Maven
Adding Repositories
The binaries required to scan the projects are available in
IZ Maven Centralrepository. Include the following repositories and plugin repositories in settings.xml
<repositories>
<repository>
<id>iz-maven-repo</id>
<name>IZ Maven Repo</name>
<url>https://iz-public-m2.s3.eu-west-2.amazonaws.com/releases</url>
</repository>
</repositories><pluginRepositories>
<pluginRepository>
<id>iz-maven-plugin-repo</id>
<url>https://iz-public-m2.s3.eu-west-2.amazonaws.com/releases</url>
</pluginRepository>
</pluginRepositories>CI/CD Integration
Go to the project root directory from the command line/terminal
Run
mvncom.integralzone.izsuite:iz-scan-cli:scancommand with the following options
-DserviceHost=xxx IZ Scan service URL
-DauthToken=xxx Security token generated from the server
-DapplicationKey=x.x Unique ID of the application / project being scanned
-DapplicationName=. Name of the application being scanned
-Dsource=xxx Optional. Location of the project source directory. If ignored, the current directory will be used as the project source directory
-DscmBranchName=xxx + Optional. SCM branch for which code is being analyzed. If ignored, the default value will be
master-DpullRequestId=xxx + _Optional.SCM Pull request name for which code is being analyzed
-Dorganization=xxx + Optional. Organization under which the project should be categorized. If ignored, the default organization will be used. Value can be any of Organization Name / Id / Ext Id. NOTE: In a multi tenancy environment, this parameter is mandatory.
-DsarifReport=xxx + _Optional. Used to generate issues in SARIF format. The output report file path must be specified using this parameter.
Please refer to the section below for instructions on how to retrieve the organization ID.
A complete example may look like
Retrieve Organization ID
Navigate to the main menu
Organizations->OrganizationsIn the displayed list of organizations, each one will have an associated
Idas shown below.

Use the Organization ID when performing the CICD scan with the
-Dorganizationparameter.
Setting Proxy Details
If the system from which the projects are analyzed is configured with a proxy, then set the following arguments with proxy server details -
Windows
See Also
Last updated
Was this helpful?

