Verified Commit 420aff42 authored by Dustin Eckhardt's avatar Dustin Eckhardt
Browse files

The SAST job is now included via template; introduced with Gitlab 11.9

parent 75b40be8
Pipeline #73947554 failed with stages
in 3 minutes and 25 seconds
......@@ -43,27 +43,10 @@ unit-tests:
only:
- branches
include:
- template: SAST.gitlab-ci.yml
sast:
stage: analyse
image: docker:stable
dependencies: []
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
only:
- branches
sonarqube:
stage: analyse
......
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