Use this action to scan a web application with the open-source Zed Attack Proxy (ZAP) dynamic application security testing (DAST) scanner.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The ZAP server URL. |
|
String |
Yes |
The ZAP token. |
|
String |
Yes |
The application environment name. |
|
String |
Yes |
The authorization type. Supported types are:
|
|
String |
Yes |
The application paths to scan. |
|
String |
Yes |
The application URL. |
|
String |
Yes |
Either |
|
String |
Required only if |
The form field name of the application username. |
|
String |
Required only if |
The form field name of the application password. |
|
String |
Required only if |
The application username. |
|
String |
Required only if |
The application password. |
|
String |
Required only if |
The application sign-in page GET URL. |
|
String |
Required only if |
The application sign-in page target URL. |
|
String |
Required only if |
The application signed-in indicator. |
|
String |
Required only if |
The application signed-out indicator. |
|
String |
Required only if |
The regular expressions to include in context. |
|
String |
Required only if |
The regular expressions to exclude from context. |
|
String |
Required only if |
The application sign-in URI. |
|
String |
Required only if |
The application sign-in hostname. |
|
String |
Required only if |
The application redirect URI. |
|
String |
Required only if |
The ZAP domain. |
|
String |
Required only if |
The ZAP client ID. |
|
String |
Required only if |
The ZAP client secret. |
Usage examples
The following display an example of each authorization type in use.
No authorization
In the case of auth-type: "noauth"
:
- name: Scan with ZAP noauth uses: cloudbees-io/zap-dast-scan-environment@v1 with: zap-url: https://example.com token: ${{ secrets.ZAP_CLIENT_SECRET }} environment: "Development" auth-type: "noauth" paths: "/components" url: "https://url.com" contextAvailable: "false"