From 05259db7354e8077c7e0517fe3b64cfdc5d615a7 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 4 Oct 2024 15:25:31 +0200 Subject: [PATCH] snyk: remove duplicated findings ... in case the same files are available via multiple locations Resolves: https://issues.redhat.com/browse/OSH-768 Closes: https://github.com/csutils/csmock/pull/186 --- py/plugins/snyk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/plugins/snyk.py b/py/plugins/snyk.py index 517d6a6..a47f927 100644 --- a/py/plugins/snyk.py +++ b/py/plugins/snyk.py @@ -33,7 +33,7 @@ SNYK_LOG = "/builddir/snyk-scan.log" -FILTER_CMD = f"csgrep '%s' --mode=json --prepend-path-prefix={SNYK_SCAN_DIR}/ > '%s'" +FILTER_CMD = f"csgrep '%s' --mode=json --prepend-path-prefix={SNYK_SCAN_DIR}/ --remove-duplicates > '%s'" # default value for the maximum amount of time taken by invocation of Snyk (5 hours) DEFAULT_SNYK_TIMEOUT = 18000