This is an automated email from the ASF dual-hosted git repository.
johnbam pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 670f140bcc Add pre-commit hook gitleaks to check for secrets (#392)
670f140bcc is described below
commit 670f140bcc0ff397e4829129293c54a4c82f1f15
Author: John Bampton <[email protected]>
AuthorDate: Tue Aug 5 05:37:42 2025 +1000
Add pre-commit hook gitleaks to check for secrets (#392)
Gitleaks is a tool for detecting secrets like passwords, API keys, and
tokens in git repos, files, and more
https://github.com/gitleaks/gitleaks
https://github.com/gitleaks/gitleaks?tab=readme-ov-file#pre-commit
---
.pre-commit-config.yaml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cc63586f5f..5fc0c61393 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -19,12 +19,18 @@ default_stages: [pre-commit, pre-push]
default_language_version:
# force all unspecified Python hooks to run python3
python: python3
-minimum_pre_commit_version: "2.17.0"
+minimum_pre_commit_version: "3.2.0"
repos:
- repo: meta
hooks:
- id: identity
- id: check-hooks-apply
+ - repo: https://github.com/gitleaks/gitleaks
+ rev: v8.27.2
+ hooks:
+ - id: gitleaks
+ name: run gitleaks
+ description: check for secrets with gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks: