From 973d74e592436943a168249f81a4cf0b899e042b Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Tue, 8 Dec 2020 20:55:53 -0500 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 35b05567..ff1fcbce 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Application Options: --branch= Branch to scan --redact Redact secrets from log messages and leaks --debug Log debug messages + --leaks-exit-code= Exit code when leaks have been encountered (default: 1) --no-git Treat git repos as plain directories and scan those files -o, --report= Report output path @@ -238,6 +239,12 @@ So you can use the following to effectively create the proper Perl regex: +### Exit Codes +You can always set the exit code when leaves are encountered with the `--leaks-exit-code` flag. Default exit codes below: +``` +0 - no leaks present +1 - leaks or error encountered +``` ### Sponsors ❤️ #### Corporate Sponsors