Skip to content

Commit b5ac8bf

Browse files
committed
ci: Add secret detection
1 parent 6fe6c24 commit b5ac8bf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 10 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/.buildkit.yml'
9+
- '/templates/.secret-detection.yml'
910

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

@@ -107,6 +108,15 @@ license_check_manual:
107108
rules:
108109
- if: $CI_PIPELINE_SOURCE != "schedule"
109110

111+
secret_detection:
112+
extends: .secret-detection
113+
stage: check
114+
image: !reference [.secret-detection, image]
115+
before_script:
116+
- echo "overriding default before_script..."
117+
rules:
118+
- if: $CI_MERGE_REQUEST_ID
119+
110120
# stage: build ----------------------
111121

112122
package:

0 commit comments

Comments
 (0)