From 845a4769742802d1bf1b05721d7545bb9b6ab636 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 18 May 2023 15:57:48 -0400 Subject: [PATCH] add secret scanning to README.md --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c7cfdb244e..30dda9d14a 100644 --- a/README.md +++ b/README.md @@ -89,20 +89,24 @@ git clone https://github.com/Infisical/infisical && cd infisical && copy .env.ex Create an account at `http://localhost:80` -### Scan your code for leaks -On top managing secrets, you can also scan for leaked secrets in your files, directories and git repositories. To scan your full git history run: +### Scan and prevent secret leaks +On top managing secrets with Infisical, you can also scan for over 140+ secret types in your files, directories and git repositories. + +To scan your full git history, run: ``` infisical scan --verbose ``` -To scan a non git repository, run the above command with --no-git flag. - -You can also scan your uncommitted git changes by running the following command: +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. + +``` infisical scan git-changes --staged --verbose ```