Skip to content

Commit 53f25e4

Browse files
committed
[easy] ci: Add secret detection
1 parent 1d97c86 commit 53f25e4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ include:
33
- project: '${CI_PROJECT_NAMESPACE}/ci-libs-for-client-libraries'
44
file:
55
- '/${CI_PROJECT_NAME}/.gitlab-ci.yml'
6+
- project: 'deepl/ops/ci-cd-infrastructure/gitlab-ci-lib'
7+
file:
8+
- '/templates/.secret-detection.yml'
69

710
# Global --------------------------
811

@@ -63,6 +66,16 @@ license_check_manual:
6366
rules:
6467
- if: $CI_PIPELINE_SOURCE != "schedule"
6568

69+
secret_detection:
70+
extends: .secret-detection
71+
stage: check
72+
image: !reference [.secret-detection, image]
73+
variables:
74+
SECRET_DETECTION_HISTORIC_SCAN: "true"
75+
before_script:
76+
- echo "overriding default before_script..."
77+
rules:
78+
- if: $CI_MERGE_REQUEST_ID
6679

6780
# stage: build ----------------------
6881

0 commit comments

Comments
 (0)