taken from https://github.com/gitleaks/gitleaks#getting-started Mac Install gitleaks using your package manager of choice (I use brew)
brew install gitleaksInstall precommit
brew install pre-commitThis will take a few minutes to initalize.
Auto-update to latest version:
pre-commit autoupdateAnd finally, install
pre-commit install