Skip to content

Commit

Permalink
add affected product ids in vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
ishabaral committed Oct 31, 2024
1 parent 965569f commit b26e5a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions csaf/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ def _process_vulnerabilities(self):
if "product_status" in vulnerability:
for product_status in vulnerability["product_status"]:
vuln_info.set_value("status", product_status)
if "known_affected" in vulnerability["product_status"]:
affected_product_ids = []
known_affected = vulnerability["product_status"].get("known_affected", [])
for affected_product_id in known_affected:
affected_product_ids.append(affected_product_id)
vuln_info.set_value("affected_product_ids", affected_product_ids )
if "remediations" in vulnerability:
remediations = []
for remediation in vulnerability["remediations"]:
Expand Down

0 comments on commit b26e5a6

Please sign in to comment.