diff --git a/index.js b/index.js index 38a8632..b5be578 100644 --- a/index.js +++ b/index.js @@ -4,9 +4,10 @@ const common = require('@zaproxy/actions-common-scans'); const _ = require('lodash'); // Default file names -let jsonReportName = 'report_json.json'; -let mdReportName = 'report_md.md'; -let htmlReportName = 'report_html.html'; +let jsonReportName = 'report.json'; +let mdReportName = 'report.md'; +let htmlReportName = 'report.html'; +let xmlReportName = 'report.xml' async function run() { @@ -51,7 +52,7 @@ async function run() { await exec.exec(`docker pull ${docker_name} -q`); let command = (`docker run -v ${workspace}:/zap/wrk/:rw --network="host" -e ZAP_AUTH_HEADER -e ZAP_AUTH_HEADER_VALUE -e ZAP_AUTH_HEADER_SITE ` + - `-t ${docker_name} zap-baseline.py -t ${target} -J ${jsonReportName} -w ${mdReportName} -r ${htmlReportName} ${cmdOptions}`); + `-t ${docker_name} zap-baseline.py -t ${target} -J ${jsonReportName} -w ${mdReportName} -r ${htmlReportName} -x ${xmlReportName} ${cmdOptions}`); if (plugins.length !== 0) { command = command + ` -c ${rulesFileLocation}`