Skip to content

Commit

Permalink
[CI] Add pre-commit hook gitleaks to detect and prevent hardcoded s…
Browse files Browse the repository at this point in the history
…ecrets (#1621)

https://github.com/gitleaks/gitleaks

Adding another check/test to our pre-commit framework.

gitleaks is a popular tool that helps with security.
  • Loading branch information
jbampton authored Oct 11, 2024
1 parent 39ec8fd commit f5faea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ repos:
description: Check spelling with codespell
args: [--ignore-words=.github/linters/codespell.txt]
exclude: ^docs/image|^spark/common/src/test/resources|^docs/usecases|^tools/maven/scalafmt
- repo: https://github.com/gitleaks/gitleaks
rev: v8.20.1
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
Expand Down

0 comments on commit f5faea4

Please sign in to comment.