add pre commit install command to README.md

This commit is contained in:
Maidul Islam
2023-05-23 20:20:10 -04:00
committed by GitHub
parent 8b05ce11f7
commit d0d6419d4d

View File

@@ -104,10 +104,10 @@ To scan your uncommitted git changes, run:
infisical scan git-changes --verbose
```
You can also scan your uncommited but staged changes by running the command below. This command can also be used as a pre-commit hook to prevent secret leak.
Install pre commit hook to scan each commit before you push to your repository
```
infisical scan git-changes --staged --verbose
infisical scan install --pre-commit-hook
```
Lean about Infisical's code scanning feature [here](https://infisical.com/docs/cli/scanning-overview)