Commit 5e5e79d4 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'skip_dast_when_review_disabled_set_27309' into 'master'

Skip DAST when REVIEW_DISABLED is set

See merge request gitlab-org/gitlab!29876
parents 5a5248be 3236fb77
......@@ -241,6 +241,8 @@ You can disable DAST:
- On all branches by setting the `DAST_DISABLED` environment variable to `"true"`.
- Only on the default branch by setting the `DAST_DISABLED_FOR_DEFAULT_BRANCH`
environment variable to `"true"`.
- Only on feature branches by setting `REVIEW_DISABLED` environment variable to
`"true"`. This also disables the Review App.
## Auto Browser Performance Testing **(PREMIUM)**
......
......@@ -36,3 +36,4 @@ dast:
variables:
- $DAST_DISABLED
- $DAST_DISABLED_FOR_DEFAULT_BRANCH && $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $CI_DEFAULT_BRANCH != $CI_COMMIT_REF_NAME && $REVIEW_DISABLED && $DAST_WEBSITE == null && $DAST_API_SPECIFICATION == null
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