From 7bcb1e424a550876fb5764c46aeb8b02f827de24 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 5 Feb 2018 11:06:15 +0000 Subject: Add SAST job to .gitlab-ci.yml --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c04e7f8..8144f43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,3 +71,11 @@ codeclimate: - docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json artifacts: paths: [codeclimate.json] + + +sast: + image: registry.gitlab.com/gitlab-org/gl-sast:latest + script: + - /app/bin/run . + artifacts: + paths: [gl-sast-report.json] \ No newline at end of file -- cgit v1.2.1 From 6c16af5d392d246bfc728a64b8b5c67e1aa6e2b0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 5 Feb 2018 11:20:04 +0000 Subject: Remove unnecessary newline in .gitlab-ci.yml [ci skip] --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8144f43..d18b0c6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,7 +72,6 @@ codeclimate: artifacts: paths: [codeclimate.json] - sast: image: registry.gitlab.com/gitlab-org/gl-sast:latest script: -- cgit v1.2.1 From 7270859b5a33d564df808d9efeccdf7459e128b2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 5 Feb 2018 11:27:25 +0000 Subject: Reset before_script for SAST job --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d18b0c6..18648f8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,6 +73,7 @@ codeclimate: paths: [codeclimate.json] sast: + before_script: [] image: registry.gitlab.com/gitlab-org/gl-sast:latest script: - /app/bin/run . -- cgit v1.2.1