Skip to content

Commit

Permalink
snyk: remove duplicated findings
Browse files Browse the repository at this point in the history
... in case the same files are available via multiple locations

Resolves: https://issues.redhat.com/browse/OSH-768
Closes: #186
  • Loading branch information
kdudka committed Oct 4, 2024
1 parent 455de9c commit 05259db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/plugins/snyk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05259db

Please sign in to comment.