summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordappelt <dappelt@gitlab.com>2019-08-16 15:49:12 +0200
committerdappelt <dappelt@gitlab.com>2019-08-16 15:49:12 +0200
commit1894665cdf23d0669e2b9c4c1f79fec82f70392c (patch)
tree13a793f4e4e1038890eebb95a30fbc1801ff217e
parent3e374ddcfba2ddb73b98b994756d68f0e5dfb611 (diff)
downloadgitlab-ce-da/enable-dast.tar.gz
-rw-r--r--.gitlab/ci/dast.gitlab-ci.yml59
1 files changed, 0 insertions, 59 deletions
diff --git a/.gitlab/ci/dast.gitlab-ci.yml b/.gitlab/ci/dast.gitlab-ci.yml
deleted file mode 100644
index 4fc741fe9ab..00000000000
--- a/.gitlab/ci/dast.gitlab-ci.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-# Read more about this feature here: https://docs.gitlab.com/ee/user/project/merge_requests/dependency_scanning.html
-#
-# Configure the scanning tool through the environment variables.
-# List of the variables: https://gitlab.com/gitlab-org/security-products/dependency-scanning#settings
-# How to set: https://docs.gitlab.com/ee/ci/yaml/#variables
-
-dast:
- stage: dast
- extends: .dedicated-no-docs
- tags: []
- cache: {}
- image: docker:stable
- variables:
- DOCKER_DRIVER: overlay2
- DOCKER_TLS_CERTDIR: ""
- # environment:
- # url: https://gitlab-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}
- allow_failure: true
- dependencies:
- - review-deploy
- services:
- - docker:stable-dind
- before_script:
- - export DAST_WEBSITE="$(cat review_app_url.txt)"
- script:
- - export DAST_VERSION=${SP_VERSION:-$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')}
- - |
- if ! docker info &>/dev/null; then
- if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
- export DOCKER_HOST='tcp://localhost:2375'
- fi
- fi
- - | # this is required to avoid undesirable reset of Docker image ENV variables being set on build stage
- function propagate_env_vars() {
- CURRENT_ENV=$(printenv)
-
- for VAR_NAME; do
- echo $CURRENT_ENV | grep "${VAR_NAME}=" > /dev/null && echo "--env $VAR_NAME "
- done
- }
- - |
- docker run \
- $(propagate_env_vars \
- DAST_WEBSITE \
- ) \
- --volume ${PWD}:/output \
- --volume /var/run/docker.sock:/var/run/docker.sock \
- "registry.gitlab.com/gitlab-org/security-products/dast:$DAST_VERSION" /analyze
- artifacts:
- reports:
- dast: gl-dast-report.json
- only:
- refs:
- - branches
- variables:
- - $GITLAB_FEATURES =~ /\bdast\b/
- except:
- variables:
- - $DAST_DISABLED