Skip to content

Commit

Permalink
Merge pull request #3 from JankariTech/refactor-remediation
Browse files Browse the repository at this point in the history
Combine multiple remediations
  • Loading branch information
Salipa-Gurung authored Oct 28, 2024
2 parents 6e70eda + b991826 commit 965569f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions csaf/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ def _process_vulnerabilities(self):
for product_status in vulnerability["product_status"]:
vuln_info.set_value("status", product_status)
if "remediations" in vulnerability:
remediations = []
for remediation in vulnerability["remediations"]:
vuln_info.set_remediation(remediation["category"])
vuln_info.set_action(remediation["details"])
remediations.append(remediation["details"])
vuln_info.set_value("remediations", remediations)
self.vulnerabilities.append(vuln_info.get_vulnerability())

def get_metadata(self):
Expand Down

0 comments on commit 965569f

Please sign in to comment.