Skip to content

Commit

Permalink
ci: Add secret detection
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEbbing committed Jan 12, 2024
1 parent 571f5e8 commit 2b257df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ include:
- project: '${CI_PROJECT_NAMESPACE}/ci-libs-for-client-libraries'
file:
- '/${CI_PROJECT_NAME}/.gitlab-ci.yml'
- project: 'deepl/ops/ci-cd-infrastructure/gitlab-ci-lib'
file:
- '/templates/.secret-detection.yml'

# Global --------------------------

Expand Down Expand Up @@ -87,6 +90,15 @@ format_manual:
rules:
- if: $CI_PIPELINE_SOURCE != "schedule"

secret_detection:
extends: .secret-detection
stage: check
image: !reference [.secret-detection, image]
before_script:
- echo "overriding default before_script..."
rules:
- if: $CI_MERGE_REQUEST_ID

# stage: build ----------------------

build:
Expand Down

0 comments on commit 2b257df

Please sign in to comment.