diff --git a/docs/infrastructure-as-code.md b/docs/infrastructure-as-code.md index 825458856..2769d41e4 100644 --- a/docs/infrastructure-as-code.md +++ b/docs/infrastructure-as-code.md @@ -21,8 +21,9 @@ polaris version ``` ## Running in a CI pipeline -You can tell the CLI to set an exit code if it detects certain issues with your -YAML files. + +### Set minimum score for an exit code +You can tell the CLI to set an exit code if it detects certain issues with your YAML files. For example, to fail if polaris detects *any* danger-level issues, or if the score drops below 90%: ```bash polaris audit --audit-path ./deploy/ \ @@ -30,3 +31,11 @@ polaris audit --audit-path ./deploy/ \ --set-exit-code-below-score 90 ``` +### Output only showing failed tests +The CLI to gives you ability to display results containing only failed tests. +For example: +```bash +polaris audit --audit-path ./deploy/ \ + --only-show-failed-tests true +``` +