Skip to content

Commit

Permalink
redhatsatellite: migrate cve to unsaved_vulnerability_ids (#9828)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer authored Mar 28, 2024
1 parent 97a8a56 commit b4a9b76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dojo/tools/redhatsatellite/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def get_findings(self, filename, test):
description=description,
severity=self.severity_mapping(input=severity),
mitigation=solution,
cve=errata_id,
component_name=packages,
dynamic_finding=True,
)
if errata_id is not None:
find.unsaved_vulnerability_ids = list()
find.unsaved_vulnerability_ids.append(errata_id)
findings.append(find)
return findings
1 change: 1 addition & 0 deletions unittests/tools/test_redhatsatellite_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ def test_parse_file_with_multiple_findingse(self):
parser = RedHatSatelliteParser()
findings = parser.get_findings(testfile, Test())
self.assertEqual(3, len(findings))
self.assertEqual("RHSA-1966:12313", findings[0].unsaved_vulnerability_ids[0])

0 comments on commit b4a9b76

Please sign in to comment.