We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6c35d9 commit f6c0d42Copy full SHA for f6c0d42
backend/application/import_observations/parsers/cyclone_dx/parser.py
@@ -424,8 +424,9 @@ def _get_aliases(self, vulnerability: dict) -> str:
424
aliases = []
425
references = vulnerability.get("references", [])
426
for reference in references:
427
- if reference.get("id"):
428
- aliases.append(reference.get("id"))
+ reference_id = reference.get("id")
+ if reference_id and reference_id != vulnerability.get("id") and reference_id not in aliases:
429
+ aliases.append(reference_id)
430
if aliases:
431
return ", ".join(aliases)
432
return ""
0 commit comments