-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from thc202/base-func
Add base functionality
- Loading branch information
Showing
11 changed files
with
28,358 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
env: | ||
contexts: | ||
- name: "Context" | ||
urls: | ||
- "http://localhost/" | ||
parameters: | ||
failOnError: true | ||
failOnWarning: true | ||
progressToStdout: true | ||
jobs: | ||
- requests: | ||
# Should cause a warning | ||
- url: "http://localhost:1234/" | ||
type: "requestor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
env: | ||
contexts: | ||
- name: "Context" | ||
urls: | ||
- "http://localhost/" | ||
parameters: | ||
failOnError: true | ||
failOnWarning: true | ||
progressToStdout: true | ||
jobs: | ||
- requests: | ||
- url: "http://localhost/" | ||
type: "requestor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# action-af | ||
A GitHub Action for running ZAP Automation Framework plans. | ||
A GitHub Action for running [ZAP Automation Framework](https://www.zaproxy.org/docs/automate/automation-framework/) plans. | ||
|
||
## Inputs | ||
|
||
### `plan` | ||
|
||
**Required** The file system path to the Automation Framework plan to run. | ||
|
||
### `docker_name` | ||
|
||
**Optional** if specified must not be empty. The name of the [ZAP Docker image](https://www.zaproxy.org/docs/docker/about/#install-instructions) to be used. By default the action runs the stable image. | ||
|
||
### `cmd_options` | ||
|
||
**Optional** Additional [command line options](https://www.zaproxy.org/docs/desktop/cmdline/) for ZAP. | ||
|
||
## Environment variables | ||
|
||
If set, the following [ZAP authentication environment variables](https://www.zaproxy.org/docs/authentication/handling-auth-yourself/#authentication-env-vars) | ||
will be copied into the docker container: | ||
|
||
- `ZAP_AUTH_HEADER_VALUE` | ||
- `ZAP_AUTH_HEADER` | ||
- `ZAP_AUTH_HEADER_SITE` | ||
|
||
## Example usage | ||
|
||
``` | ||
steps: | ||
- name: ZAP Scan | ||
uses: zaproxy/[email protected] | ||
with: | ||
plan: '.github/workflows/zap/plan.yml' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'ZAP Automation Framework' | ||
description: 'Runs an Automation Framework plan' | ||
branding: | ||
icon: 'zap' | ||
color: 'blue' | ||
inputs: | ||
plan: | ||
description: 'The file system path to the Automation Framework plan to run.' | ||
required: true | ||
docker_name: | ||
description: 'The Docker image to be used.' | ||
required: true | ||
default: 'ghcr.io/zaproxy/zaproxy:stable' | ||
cmd_options: | ||
description: 'Additional command line options to start ZAP with.' | ||
required: false | ||
runs: | ||
using: 'node20' | ||
main: 'dist/index.js' |
Oops, something went wrong.