Added 'detect-secrets' check as part of pre-commit hooks#109
Added 'detect-secrets' check as part of pre-commit hooks#109
Conversation
|
Hey @whutomo, is it possible to use the pre-commit NPM package, to keep installations purely to NPM? This will also add support for Windows devices which won't have |
Hi @richardfontein, I have tried to be using the npm version of Although windows does not support brew, these packages (detect-secrets & pre-commit) are available via if supporting window OS is a priority for us I am happy to take another look at different libraries like https://www.npmjs.com/package/truffle-security |
I have added
.pre-commit-config.yamlfile which performs a pre-commit hook to performdetect-secrets.This will prevent from developers to accidentally committing code changes with potential secrets in itPlease run
brew install detect-secretsandbrew install pre-committo enable the the pre-commit hook operation in your local machine.if you have issues with installing the dependencies above please find more information here:
to test it out after installation, perform the following:
const password = 1234)