diff options
Diffstat (limited to '.gitlab/ci/dast.gitlab-ci.yml')
-rw-r--r-- | .gitlab/ci/dast.gitlab-ci.yml | 59 |
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 |