mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #598 from Infisical/maidul98-patch-1
add pre commit install command to README.md
This commit is contained in:
@@ -104,10 +104,10 @@ To scan your uncommitted git changes, run:
|
|||||||
infisical scan git-changes --verbose
|
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)
|
Lean about Infisical's code scanning feature [here](https://infisical.com/docs/cli/scanning-overview)
|
||||||
|
|||||||
Reference in New Issue
Block a user