diff --git a/examples/pre-commit-config-example.yaml b/examples/pre-commit-config-example.yaml new file mode 100644 index 00000000..a104e92e --- /dev/null +++ b/examples/pre-commit-config-example.yaml @@ -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