For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using Maven

CICD Integration - Using Maven

Adding Repositories

  1. The binaries required to scan the projects are available in IZ Maven Central repository. 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

  1. Go to the project root directory from the command line/terminal

  2. Run mvn com.integralzone.iz:iz-scan-cli:scan command with the following options

    1. -DserviceHost=xxx IZ Scan service URL

    2. -DauthToken=xxx Security token generated from the server

    3. -DapplicationKey=x.x Unique ID of the application / project being scanned

    4. -DapplicationName=. Name of the application being scanned

    5. -Dsource=xxx Optional. Location of the project source directory. If ignored, the current directory will be used as the project source directory

    6. -DscmBranchName=xxx + Optional. SCM branch for which code is being analyzed. If ignored, the default value will be master

    7. -DpullRequestId=xxx + _Optional.SCM Pull request name for which code is being analyzed

    8. -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

    9. -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.

  1. A complete example may look like

Retrieve Organization ID

  1. Navigate to the main menu Organizations -> Organizations

  2. In the displayed list of organizations, each one will have an associated Id as shown below.

  1. Use the Organization ID when performing the CICD scan with the -Dorganization parameter.

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 -

  1. Windows

  • Replace PROXY_HOST and PROXY_PORT with appropriate values for Porxy server host and port

  • If https.proxyPort is not specified default value will be 443

  • If http.proxyPort is not specified default value will be 80

See Also

Last updated

Was this helpful?