From 6faf27fc0c8ebe170671c9139333c1b4f3df9281 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:18:53 -0800 Subject: [PATCH] add component path as file_path This is mainly for SCA anyways - SAST contains a different set of vulns and I can write that parser to differentiate SAST vs SCA. --- dojo/tools/mend-sca-platform-api3/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dojo/tools/mend-sca-platform-api3/parser.py b/dojo/tools/mend-sca-platform-api3/parser.py index 51b5d7afc80..6b0f606b549 100644 --- a/dojo/tools/mend-sca-platform-api3/parser.py +++ b/dojo/tools/mend-sca-platform-api3/parser.py @@ -39,6 +39,7 @@ def _build_common_output(node, lib_name=None): component_name = None component_version = None impact = None + file_path = None if 'component' in node: description = ( @@ -68,6 +69,7 @@ def _build_common_output(node, lib_name=None): component_name = node['component'].get('artifactId') component_version = node['component'].get('version') impact = node['component'].get('dependencyType') + file_path = node['component'].get('path') else: description = node['vulnerability'].get('description', "")