diff options
Diffstat (limited to 'lefthook.yml')
-rw-r--r-- | lefthook.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lefthook.yml b/lefthook.yml index cfe68b5c390..c44ea8cdeab 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -79,7 +79,10 @@ pre-push: files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD glob: 'data/removals/*.yml' run: echo "Changes to removals files detected. Checking removals..\n"; bundle exec rake gitlab:docs:check_removals +pre-commit: + parallel: true + commands: secrets-detection: tags: secrets - files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD - run: 'if command -v ripsecrets > /dev/null 2>&1; then ripsecrets --strict-ignore {files}; else echo "WARNING: ripsecrets is not installed. Please install it."; fi' + files: git diff --name-only --diff-filter=d --staged + run: 'if command -v gitleaks > /dev/null 2>&1; then gitleaks protect --no-banner --staged --redact --verbose; else echo "WARNING: gitleaks is not installed. Please install it. See https://github.com/zricethezav/gitleaks#installing."; fi' |