Intro
CI/CD Fundamentals
git-vars package
Role Based Access Control
Protected Branches and Tags
Security Templates
Artifact Management
3.2 Secret Detection Template
The Secret Detection Template scans your code for any hardcoded secrets, such as API keys or passwords.
-
Include the Secret Detection Template:
Add the following line to your
.gitlab-ci.yml
file.
include:
- template: Secret-Detection.gitlab-ci.yml
Example Configuration:
stages:
- scan
secret_detection:
stage:
- scan