Commit 036bf541 authored by Philip Cunningham's avatar Philip Cunningham

Add docs for making ZAP artifacts CI Job Artifacts

parent bed04fae
...@@ -593,24 +593,22 @@ There are two formats of data in the JSON report that are used side by side: ...@@ -593,24 +593,22 @@ There are two formats of data in the JSON report that are used side by side:
### Other formats ### Other formats
Reports can also be generated in Markdown, HTML, and XML. Reports can also be generated in Markdown, HTML, and XML. These can be published as artifacts using the following configuration:
Reports can be published as artifacts using the following configuration:
```yaml ```yaml
include: include:
template: DAST.gitlab-ci.yml template: DAST.gitlab-ci.yml
dast: dast:
script: variables:
- export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)} DAST_HTML_REPORT: report.html
- /analyze -r report.html -w report.md -x report.xml -t $DAST_WEBSITE DAST_MARKDOWN_REPORT: report.md
- cp /zap/wrk/report.{html,md,xml} "$PWD" DAST_XML_REPORT: report.xml
artifacts: artifacts:
paths: paths:
- report.html - $DAST_HTML_REPORT
- report.md - $DAST_MARKDOWN_REPORT
- report.xml - $DAST_XML_REPORT
- gl-dast-report.json - gl-dast-report.json
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment