Configure SAST and Secret Detection in .gitlab-ci.yml, creating this file if it does not already exist
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user