Skip to content

Commit ec67f25

Browse files
committed
update
1 parent 59916fb commit ec67f25

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • dojo/tools/jfrog_xray_api_summary_artifact

dojo/tools/jfrog_xray_api_summary_artifact/parser.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def get_items(self, tree, test):
4343
service = decode_service(artifact_general["name"])
4444
item = get_item(
4545
node,
46-
str(service),
4746
test,
4847
artifact.name,
48+
str(service),
4949
artifact.version,
5050
artifact.sha256,
5151
)
@@ -56,9 +56,9 @@ def get_items(self, tree, test):
5656
# Retrieve the findings of the affected 1st level component (Artifact)
5757
def get_item(
5858
vulnerability,
59-
service,
6059
test,
6160
artifact_name,
61+
artifact_service,
6262
artifact_version,
6363
artifact_sha256,
6464
):
@@ -114,7 +114,6 @@ def get_item(
114114

115115
finding = Finding(
116116
vuln_id_from_tool=vuln_id_from_tool,
117-
service=service,
118117
title=vulnerability["summary"],
119118
cwe=cwe,
120119
cvssv3=cvssv3,
@@ -126,7 +125,7 @@ def get_item(
126125
+ vulnerability["description"],
127126
test=test,
128127
file_path=impact_paths[0],
129-
component_name=artifact_name,
128+
component_name=artifact_name or artifact_service,
130129
component_version=artifact_version,
131130
static_finding=True,
132131
dynamic_finding=False,

0 commit comments

Comments
 (0)