Skip to content

Commit 6c77cc4

Browse files
Alaa Jubakhanjidaniel-jones-dev
authored andcommitted
ci: Add SAST testing to CI checks
1 parent 341ba86 commit 6c77cc4

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include:
66
- project: 'deepl/ops/ci-cd-infrastructure/gitlab-ci-lib'
77
file:
88
- '/templates/.secret-detection.yml'
9+
- template: Security/SAST.gitlab-ci.yml
910

1011
# Global --------------------------
1112

@@ -35,6 +36,9 @@ stages:
3536
before_script:
3637
- npm install
3738

39+
variables:
40+
GITLAB_ADVANCED_SAST_ENABLED: 'true'
41+
3842
# stage: check ----------------------
3943

4044
.eslint_base:
@@ -99,6 +103,26 @@ secret_detection:
99103
rules:
100104
- if: $CI_MERGE_REQUEST_ID
101105

106+
gitlab-advanced-sast:
107+
stage: check
108+
rules:
109+
- when: always
110+
before_script:
111+
- ''
112+
variables:
113+
SAST_EXCLUDED_PATHS: '$DEFAULT_SAST_EXCLUDED_PATHS'
114+
GIT_STRATEGY: clone
115+
116+
semgrep-sast:
117+
stage: check
118+
rules:
119+
- when: always
120+
before_script:
121+
- ''
122+
variables:
123+
SAST_EXCLUDED_PATHS: '$DEFAULT_SAST_EXCLUDED_PATHS'
124+
GIT_STRATEGY: clone
125+
102126
# stage: build ----------------------
103127

104128
build:

0 commit comments

Comments
 (0)