From c3d74021680149aaf9d74348b7f665be213de06c Mon Sep 17 00:00:00 2001 From: Raul Date: Fri, 8 Aug 2025 11:13:17 -0500 Subject: [PATCH] Add pre-commit configuration with git-leaks This commit adds a pre-commit configuration that includes git-leaks to automatically scan for secrets and sensitive information before each commit. This helps prevent accidental commits of API keys, passwords, and other sensitive data. Features: - Automatic secret detection using git-leaks v8.28.0 - Verbose output for transparency - Redacted output to avoid exposing secrets in logs - Runs on every commit to ensure security compliance --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..48d1b81 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/gitleaks/gitleaks + rev: v8.28.0 # latest version + hooks: + - id: gitleaks + args: ['--verbose', '--redact']