Skip to main content

Installing the DAST CLI in a Pipeline

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

To run a DAST Scan, you need an outbound connection to Checkmarx One so we can upload the results. To do so, we must ensure we can connect to the following IP (for BETA version-> Canary). For more information, please review the Checkmarx One External IPs page.

3.126.230.210

3.74.225.192

3.120.214.171

When running the DAST CLI, you have the following available commands/flags available:

Usage:

Glossary
Executes a DAST api scan

Usage:  dast api [flags]

Flags: 

-h, --help             help for api     

--openapi string   path to the openapi file     

--postman string   path to the postman file

Executes a DAST web scan

Usage:  dast web [flags]

Flags:  -h, --help   help for web

Generate a DAST configuration file

Usage:  dast generate [command]

Available Commands:

form-auth

json-auth

no-auth

Flags:

-h, --help   help for generate

Global Flags:

Glossary
--base-url <string>

CxOne Servers base URL.

--config <string>

Path to the config file.

--environment-id <string>

The ID of the environment previously created in the CxOne Frontend.

--fail-on <string>

Lowest severity in the results to fail the execution of the DAST-CLI (all, low, info, medium, high, Critical).

-h, --help

Help for DAST.

--jvm-properties <string> (Default - "-Xmx3G")

Path to the jvm properties file.

--log-level <string> (Default - "info")

Log level.

--output <string>

Path to the output directory.

--proxy-port <string>

Override the host port used for proxying.

--proxy-url <string>

Override the host used for proxying.

--retry-delay <int> (Default - 20)

Time between retries in seconds, use with --retry.

--retry <int> (Default - 3)

Retry requests to AST on connection failure.

--timeout <int> (Default - 10000)

DAST scan timeout in seconds.

--update-interval <int> (Default - 30)

Update interval in seconds.

--verbose

Print logs to stdout.

The following CI/CD pipelines integrate with DAST: