Configure Secret Detection in `.gitlab-ci.yml`, creating this file if it does not already exist
b9768cf added
.gitlab-ci.yml +16 -0 | new file mode 100644 | ||
| @@ -0,0 +1,16 @@ | ||
| 1 | +# You can override the included template(s) by including variable overrides | |
| 2 | +# SAST customization: https://docs.gitlab.com/user/application_security/sast/#available-cicd-variables | |
| 3 | +# Secret Detection customization: https://docs.gitlab.com/user/application_security/secret_detection/pipeline/configure/ | |
| 4 | +# Dependency Scanning customization: https://docs.gitlab.com/user/application_security/dependency_scanning/dependency_scanning_sbom/#customizing-analyzer-behavior | |
| 5 | +# Container Scanning customization: https://docs.gitlab.com/user/application_security/container_scanning/#customizing-analyzer-behavior | |
| 6 | +# Note that environment variables can be set in several places | |
| 7 | +# See https://docs.gitlab.com/ci/variables/#cicd-variable-precedence | |
| 8 | +stages: | |
| 9 | +- test | |
| 10 | +- secret-detection | |
| 11 | +variables: | |
| 12 | + SECRET_DETECTION_ENABLED: 'true' | |
| 13 | +secret_detection: | |
| 14 | + stage: secret-detection | |
| 15 | +include: | |
| 16 | +- template: Security/Secret-Detection.gitlab-ci.yml | |
| new file mode 100644 | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | +# You can override the included template(s) by including variable overrides | ||
| 2 | +# SAST customization: https://docs.gitlab.com/user/application_security/sast/#available-cicd-variables | ||
| 3 | +# Secret Detection customization: https://docs.gitlab.com/user/application_security/secret_detection/pipeline/configure/ | ||
| 4 | +# Dependency Scanning customization: https://docs.gitlab.com/user/application_security/dependency_scanning/dependency_scanning_sbom/#customizing-analyzer-behavior | ||
| 5 | +# Container Scanning customization: https://docs.gitlab.com/user/application_security/container_scanning/#customizing-analyzer-behavior | ||
| 6 | +# Note that environment variables can be set in several places | ||
| 7 | +# See https://docs.gitlab.com/ci/variables/#cicd-variable-precedence | ||
| 8 | +stages: | ||
| 9 | +- test | ||
| 10 | +- secret-detection | ||
| 11 | +variables: | ||
| 12 | + SECRET_DETECTION_ENABLED: 'true' | ||
| 13 | +secret_detection: | ||
| 14 | + stage: secret-detection | ||
| 15 | +include: | ||
| 16 | +- template: Security/Secret-Detection.gitlab-ci.yml | ||