mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
* Docker-based pre-commit configuration example * Docker-based pre-commit configuration example
15 lines
409 B
YAML
15 lines
409 B
YAML
# 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
|