From d0d6419d4d2ca6388cf1edac38220c55745dc239 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 23 May 2023 20:20:10 -0400 Subject: [PATCH] add pre commit install command to README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 30dda9d14..b180a23cd 100644 --- a/README.md +++ b/README.md @@ -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)