Configure Secret Detection in .gitlab-ci.yml, creating this file if it does not already exist

This commit is contained in:
caydens 2026-07-16 15:38:31 -05:00
parent 4c73345d6b
commit 51e2bfbf0a

View file

@ -7,7 +7,13 @@
# See https://docs.gitlab.com/ci/variables/#cicd-variable-precedence # See https://docs.gitlab.com/ci/variables/#cicd-variable-precedence
stages: stages:
- test - test
- secret-detection
sast: sast:
stage: test stage: test
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
variables:
SECRET_DETECTION_ENABLED: 'true'
secret_detection:
stage: secret-detection