Commit 147f1f5f authored by elmar's avatar elmar
Browse files

fix: syntax

parent c49cc482
Pipeline #675 failed
image: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
include:
- template: Security/Secret-Detection.gitlab-ci.yml
variables:
TF_ROOT: "${CI_PROJECT_DIR}"
TF_ADDRESS: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/${CI_PROJECT_NAME}"
......@@ -15,7 +17,6 @@ cache:
before_script:
- cd ${TF_ROOT}
stages:
- secrets-detection
- prepare
- validate
- build
......@@ -52,9 +53,3 @@ apply:
when: manual
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
gitleaks:
stage: secrets-detection
image:
name: "zricethezav/gitleaks"
entrypoint: [""]
script: gitleaks -v --pretty --repo-path . --commit-from=$CI_COMMIT_SHA --commit-to=$CI_COMMIT_BEFORE_SHA --branch=$CI_COMMIT_BRANCH
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment