MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / advisory_data

Method advisory_data

vulnerabilities/importers/xen.py:49–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 importer_name = "Xen Importer"
48
49 def advisory_data(self):
50 data = fetch_response(self.url).json()
51 # The data looks like this
52 # [
53 # {
54 # "xsas": [
55 # {
56 # "cve": [
57 # "CVE-2012-5510"
58 # ],
59 # "title": "XSA-1: Xen security advisory",
60 # }
61 # ]
62 # }
63 # ]
64 if not data:
65 return []
66 xsas = data[0]["xsas"]
67 for xsa in xsas:
68 yield from self.to_advisories(xsa)
69
70 def to_advisories(self, xsa):
71 xsa_id = xsa.get("xsa")

Callers

nothing calls this directly

Calls 3

to_advisoriesMethod · 0.95
fetch_responseFunction · 0.90
jsonMethod · 0.45

Tested by

no test coverage detected