From 89c3222f07658c00aaa691a267e598f9b57d0405 Mon Sep 17 00:00:00 2001 From: Wang Yuyang Date: Sat, 4 Dec 2021 15:00:30 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c095e5..5dc9dc1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,12 +52,10 @@ docker: - docker build -t registry.hub.docker.com/echo0821/web-methodology:latest . - docker push registry.hub.docker.com/echo0821/web-methodology:latest - docker rmi registry.hub.docker.com/echo0821/web-methodology -#sast: -# variables: -# SAST_EXCLUDED_PATHS: spec, test, tests, tmp, editormd -# stage: test -# only: -# - master -#include: -#- template: Security/SAST.gitlab-ci.yml -#- template: Security/Secret-Detection.gitlab-ci.yml +sast: + variables: + SAST_EXCLUDED_PATHS: spec, test, tests, tmp, editormd + stage: test +include: +- template: Security/SAST.gitlab-ci.yml +- template: Security/Secret-Detection.gitlab-ci.yml