Skip to main content

Installing the DAST CLI in a Pipeline

Important

Before you begin: API key must be generated by a user with the dast-external-scans role. Navigate to the Vertical_Ellipsis.png → Copy Environment ID). For more information see Configuration File.

You can integrate DAST with your favorite CI/CD pipelines. This section explains how to install the DAST CLI in a pipeline.

CI/CD Command

Your DevOps pipeline can include DAST scans and store all of its configuration data in Checkmarx One. This will ensure that every subsequent scan uses the same settings, giving you greater flexibility and making integrating DAST into your workflow easier.

To add your own CI/CD command, at the end of the environment row:

  1. Click Vertical_Ellipsis.png to open the dropdown menu.

    cicd1.png
  2. Select >_ Create CI/CD Command.

  3. A second dropdown will appear with available templates - choose one to open the CI/CD panel.

    cicd2.png

The left side of the panel contains all the template sections. The right side contains the full template, including the Docker command. When you hover over a section on the left, the corresponding parameter in the text will be highlighted on the right.

Click Copy Command when ready.

Replace the following variables:

  • environment-id → replace the ID with the corresponding ID on Checkmarx One. You can copy it from the UI by clicking Vertical_Ellipsis.png > Copy Environment ID.

  • config → replace with the corresponding location of the configuration file.

  • base-url → Specify the URL of your Checkmarx One tenant.

  • output → specify the location for the output folder.

  • openapi (only mandatory for API scans)→ specify the location of the API file.

The following CI/CD pipelines integrate with DAST: