diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d40609f92594ef96a4cbf628242585a55907345b..7dd0f0c39ca0c15dcf191d0898560b5c5cc6fc02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,8 @@ image: golang:1.13 +include: + - template: Security/SAST.gitlab-ci.yml + variables: REPO_NAME: gitlab.com/gitlab-org/labkit @@ -54,22 +57,6 @@ test_1.14: sast: stage: verify - image: docker:stable - variables: - DOCKER_DRIVER: overlay2 - allow_failure: true - services: - - docker:stable-dind - script: - - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - - docker run - --env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}" - --volume "$PWD:/code" - --volume /var/run/docker.sock:/var/run/docker.sock - "registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code - artifacts: - reports: - sast: gl-sast-report.json # Ensure that all the changes are backwards compatible with GitLab Workhorse backwards_compat_workhorse: