From dfcf174704e2642ebbb2160c8c050f7d87897ee3 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Thu, 25 Jul 2024 15:53:11 +0200 Subject: [PATCH] ci: Add Gitleaks to pre-commit configuration Prevent leakage of secrets --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6735697dd..6b07751c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,10 @@ default_install_hook_types: [commit-msg, pre-commit] default_stages: [commit, merge-commit] minimum_pre_commit_version: 3.2.0 repos: + - repo: https://github.com/gitleaks/gitleaks.git + rev: v8.18.4 + hooks: + - id: gitleaks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: