Commit 57bfac17 authored by Philippe Lafoucrière's avatar Philippe Lafoucrière

Merge branch 'sh-improve-dast-template-error' into 'master'

Improve error message in DAST CI template

See merge request gitlab-org/gitlab!29388
parents 1b238d9b 28545726
---
title: Improve error message in DAST CI template
merge_request: 29388
author:
type: other
...@@ -22,6 +22,7 @@ dast: ...@@ -22,6 +22,7 @@ dast:
allow_failure: true allow_failure: true
script: script:
- export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)} - export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)}
- if [ -z "$DAST_WEBSITE$DAST_API_SPECIFICATION" ]; then echo "Either DAST_WEBSITE or DAST_API_SPECIFICATION must be set. See https://docs.gitlab.com/ee/user/application_security/dast/#configuration for more details." && exit 1; fi
- /analyze - /analyze
artifacts: artifacts:
reports: reports:
......
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