Use this action to scan a web application with the StackHawk dynamic application security testing (DAST) scanner.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The StackHawk token. |
|
String |
Yes |
The StackHawk application ID. |
|
String |
Yes |
The application environment name. |
|
String |
Yes |
The authorization type. Supported types are:
|
|
String |
Yes |
The application paths to scan. |
|
String |
Yes |
The file path to comparison test, which contains known security vulnerabilities. |
|
String |
Yes |
The application URL. |
|
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 StackHawk domain. |
|
String |
Required only if |
The StackHawk client ID. |
|
String |
Required only if |
The StackHawk client secret. |
The following display an example of each authorization type in use.
In the case of auth-type: "noauth"
:
- name: Scan with StackHawk noauth
uses: cloudbees-io/stackhawk-dast-scan-environment@v1
with:
token: ${{ secrets.STACKHAWK_TOKEN }}
app-id: "your-application-id"
environment: "Development"
auth-type: "noauth"
paths: "/components1,/components2"
test-path: "/component-test"
url: "https://example.com"
In the case of auth-type: "UsernamePasswordAuth"
:
- name: Scan with StackHawk user passwd
uses: cloudbees-io/stackhawk-dast-scan-environment@v1
with:
token: ${{ secrets.STACKHAWK_TOKEN}}
app-id: "your-application-id"
environment: "Development"
auth-type: "UsernamePasswordAuth"
paths: "/index.jsp?content=personal.htm"
test-path: "/index.jsp?content=personal.htm"
url: "https://demo.testfire.net"
app-username-form-field-name: "uid"
app-password-form-field-name: "passw"
app-username: "admin"
app-password: ${{ secrets.STACKHAWK_PASSWORD }}
In the case of auth-type: "auth0"
:
- name: Scan with StackHawk auth0
uses: cloudbees-io/stackhawk-dast-scan-environment@v1
with:
token: ${{ secrets.STACKHAWK_TOKEN }}
app-id: "your-application-id"
environment: "Development"
auth-type: "auth0"
paths: "/dashboard,/organisations,/standards"
test-path: "/components"
url: "https://example.com"
domain: "https://cbcdev.eu.auth0.com"
client-id: ${{ secrets.STACKHAWK_CLIENT_ID }}
client-secret: ${{ secrets.STACKHAWK_CLIENT_SECRET }}
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.