-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
42 lines (34 loc) · 1.07 KB
/
action.yaml
File metadata and controls
42 lines (34 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "EvoMaster Action"
description: "Fuzz Testing Web APIs with EvoMaster on GitHub Action"
inputs:
args:
description: "Arguments to pass to EvoMaster. Same as when running it on a command-line."
required: true
failOnErrors:
description: "Fail the action if any issue was found in the System Under Test"
required: true
runs:
using: "composite"
steps:
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 21
- name: Download EvoMaster JAR using GitHub CLI
run: gh release download --repo webfuzzing/evomaster --pattern "evomaster.jar"
shell: bash
env:
GH_TOKEN: ${{ github.token }}
- name: Run EvoMaster
run: java -jar evomaster.jar ${{ inputs.args }}
shell: bash
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Analyze Results
run: node "$GITHUB_ACTION_PATH"/dist/index.js
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
FAIL_ON_ERRORS: ${{inputs.failOnErrors}}