Security Templates

Secret Detection Template

< >

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