mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
Docker-based pre-commit configuration example (#551)
* Docker-based pre-commit configuration example * Docker-based pre-commit configuration example
This commit is contained in:
1 parent
6f5ad9dc0b
commit
e6934bf0a5
1 file changed
+14
@@ -0,0 +1,14 @@
|
|||||||
|
# pre-commit configuration example to add docker-based hook that executes gitleaks
|
||||||
|
# This should be added to .pre-commit-config.yaml coniguration file: https://pre-commit.com/#2-add-a-pre-commit-configuration
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: gitleaks
|
||||||
|
name: Gitleaks
|
||||||
|
language: docker_image
|
||||||
|
entry: zricethezav/gitleaks:v7.4.0
|
||||||
|
args:
|
||||||
|
- --config-path
|
||||||
|
- .gitleaks.toml
|
||||||
|
- --verbose
|
||||||
Reference in new issue
Block a user