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

This commit is contained in:
Jonas Karl Wilhelm Hahn
2025-08-22 14:03:01 +00:00
parent 1ad4d77669
commit 99306dd26f

View File

@@ -5,9 +5,18 @@
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings # Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places # Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
:stages:
- test
:sast:
:stage: test
:include:
- :template: Security/SAST.gitlab-ci.yml
stages: stages:
- test - test
sast: - secret-detection
stage: test variables:
SECRET_DETECTION_ENABLED: 'true'
secret_detection:
stage: secret-detection
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/Secret-Detection.gitlab-ci.yml