Yelp detect secrets is a system that prevents secrets from entering your code base. I would like to install the pre-commit hook it provides.
I've never used Git hooks before, but all the example files I see in .git/hooks/
are in bash, while the example given in the readme of yelp is a yaml file.
They link to the pre-commit.com; "a framework for managing and maintaining multi-language pre-commit hooks".
Does this mean the yelp pre-commit hook can only be used by first installing the pre-commit framework?
If so, I'm kind of lost in the usage of pre-commit. I've installed it and I can call it. So in an existing repo I've run pre-commit install
. But how can I now add the yelp detect secrets pre commit hook?
Of course I've looked over the documentation on pre-commit.com, but I'm kind of lost in it.