diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..c13cfa9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/gitleaks/gitleaks + rev: v8.18.2 + hooks: + - id: gitleaks diff --git a/Makefile b/Makefile index 3b052a7..de69b16 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,7 @@ sandbox: unit-test: TESTING=true go test -v ./test rm -rf test/dotctl_test 2> /dev/null + +pre-commit-hooks: + pre-commit autoupdate + pre-commit install