From 34ea41b4bffa607f9259f37d5422bd64bed217e8 Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Mon, 10 Jul 2023 10:31:44 +0600 Subject: [PATCH] Revert "clarifying a dir path is required for custom policies (#4716)" This reverts commit 8a1aa448a17e2dcf118ffd25b9a738f18ff175ae. --- docs/docs/scanner/misconfiguration/custom/index.md | 3 --- docs/docs/scanner/misconfiguration/index.md | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/docs/scanner/misconfiguration/custom/index.md b/docs/docs/scanner/misconfiguration/custom/index.md index 94b1fec9c330..d31f5e8c35af 100644 --- a/docs/docs/scanner/misconfiguration/custom/index.md +++ b/docs/docs/scanner/misconfiguration/custom/index.md @@ -8,9 +8,6 @@ Once you finish writing custom policies, you can pass the directory where those trivy conf --policy /path/to/custom_policies --namespaces user /path/to/config_dir ``` -!!! Tip - Note: The `--policy` path always needs to refer to a directory. You cannot pass a specific policy file. - As for `--namespaces` option, the detail is described as below. ### File formats diff --git a/docs/docs/scanner/misconfiguration/index.md b/docs/docs/scanner/misconfiguration/index.md index f7999e4eba30..c63d9bbe2d85 100644 --- a/docs/docs/scanner/misconfiguration/index.md +++ b/docs/docs/scanner/misconfiguration/index.md @@ -327,8 +327,7 @@ trivy conf --policy custom-policy/policy --policy combine/policy --namespaces us For more details, see [Custom Policies](./custom/index.md). !!! tip - You also need to specify `--namespaces` option. - Furthermore, the `--policy` path always needs to refer to a directory. You cannot pass a specific policy file. +You also need to specify `--namespaces` option. ### Pass custom data You can pass directories including your custom data through `--data` option.