I still need to test locally if I get an error when trying to commit a secret. I just did that but got no error. Not sure whether the pre-commit hooks actually run. All I need for Husky is to npm install, right?
Originally posted by @niklashaug in #72 (comment)
I've looked into this a bit and found out that the ignore-scripts probably prohibit the prepare script which sets up gitleaks from ever running.
Probably the only thing that can be done is to document that this needs to be run manually once. I'm wondering if there is any better way to enforce it so you won't forget running this in a new codebase.
I still need to test locally if I get an error when trying to commit a secret. I just did that but got no error. Not sure whether the pre-commit hooks actually run. All I need for Husky is to
npm install, right?Originally posted by @niklashaug in #72 (comment)
I've looked into this a bit and found out that the ignore-scripts probably prohibit the
preparescript which sets up gitleaks from ever running.Probably the only thing that can be done is to document that this needs to be run manually once. I'm wondering if there is any better way to enforce it so you won't forget running this in a new codebase.