Commit 07d60285 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'document-report-artifacts-198459' into 'master'

Add docs for making ZAP artifacts CI Job Artifacts

See merge request gitlab-org/gitlab!32402
parents e5d5a1f5 036bf541
...@@ -605,24 +605,22 @@ There are two formats of data in the JSON report that are used side by side: ...@@ -605,24 +605,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