From 14053fb87e5625a35f95b112b75f5be6739f908a Mon Sep 17 00:00:00 2001 From: Haani Niyaz Date: Sat, 2 Jul 2022 22:49:30 +1000 Subject: [PATCH] Add gitleaks to detect secrets on commit --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f146043..09b0fab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,10 @@ repos: rev: v1.46.2 hooks: - id: golangci-lint + - repo: https://github.com/zricethezav/gitleaks + rev: v8.2.0 + hooks: + - id: gitleaks ci: autofix_commit_msg: |