From 5c25d919c32fcd0465b6581ae34c266b405ea4ce Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Wed, 1 Nov 2023 10:21:53 +0600 Subject: [PATCH 1/2] docs: add info that license scanning supports file-patterns flag --- docs/docs/configuration/skipping.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/configuration/skipping.md b/docs/docs/configuration/skipping.md index 2537a529ff54..e34ec343e3d1 100644 --- a/docs/docs/configuration/skipping.md +++ b/docs/docs/configuration/skipping.md @@ -98,7 +98,7 @@ This will skip the file `foo` that happens to be nested under any parent(s). | Vulnerability | ✓ | | Misconfiguration | ✓ | | Secret | | -| License | | +| License | ✓[^1] | When a directory is given as an input, Trivy will recursively look for and test all files based on file patterns. The default file patterns are [here](../scanner/misconfiguration/custom/index.md). @@ -114,3 +114,5 @@ A file pattern contains the analyzer it is used for, and the pattern itself, joi ``` The prefixes are listed [here](https://github.com/aquasecurity/trivy/tree/{{ git.commit }}/pkg/fanal/analyzer/const.go) + +[^1]: Only for licenses not obtained from packages (additional licenses obtained using the [license-full](../scanner/license.md) flag) \ No newline at end of file From b56d24161fc5bc9349db05061bd70aa8014dae8a Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:17:50 +0600 Subject: [PATCH 2/2] docs: simplify footnote Co-authored-by: Teppei Fukuda --- docs/docs/configuration/skipping.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/configuration/skipping.md b/docs/docs/configuration/skipping.md index e34ec343e3d1..7e228d696fff 100644 --- a/docs/docs/configuration/skipping.md +++ b/docs/docs/configuration/skipping.md @@ -115,4 +115,5 @@ A file pattern contains the analyzer it is used for, and the pattern itself, joi The prefixes are listed [here](https://github.com/aquasecurity/trivy/tree/{{ git.commit }}/pkg/fanal/analyzer/const.go) -[^1]: Only for licenses not obtained from packages (additional licenses obtained using the [license-full](../scanner/license.md) flag) \ No newline at end of file + +[^1]: Only work with the [license-full](../scanner/license.md) flag) \ No newline at end of file