Skip to content

Commit 82948d7

Browse files
Alaa Jubakhanjidaniel-jones-dev
Alaa Jubakhanji
authored andcommitted
ci: Add SAST testing to CI checks
1 parent 63754b7 commit 82948d7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: .gitlab-ci.yml

+18
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

@@ -15,6 +16,7 @@ image: eclipse-temurin:17-alpine
1516
variables:
1617
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
1718
JAVA_TOOL_OPTIONS: ""
19+
GITLAB_ADVANCED_SAST_ENABLED: 'true'
1820

1921
workflow:
2022
rules:
@@ -77,6 +79,22 @@ secret_detection:
7779
rules:
7880
- if: $CI_MERGE_REQUEST_ID
7981

82+
gitlab-advanced-sast:
83+
stage: check
84+
rules:
85+
- when: always
86+
variables:
87+
SAST_EXCLUDED_PATHS: '$DEFAULT_SAST_EXCLUDED_PATHS'
88+
GIT_STRATEGY: clone
89+
90+
semgrep-sast:
91+
stage: check
92+
rules:
93+
- when: always
94+
variables:
95+
SAST_EXCLUDED_PATHS: '$DEFAULT_SAST_EXCLUDED_PATHS'
96+
GIT_STRATEGY: clone
97+
8098
# stage: build ----------------------
8199

82100
.build_base:

0 commit comments

Comments
 (0)