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

Method run

vulnerabilities/import_runner.py:54–63  ·  view source on GitHub ↗

Create a data source for the given importer and store the data retrieved in the database.

(self)

Source from the content-addressed store, hash-verified

52 self.importer_class = importer_class
53
54 def run(self) -> None:
55 """
56 Create a data source for the given importer and store the data retrieved in the database.
57 """
58 importer_name = self.importer_class.qualified_name
59 importer_class = self.importer_class
60 logger.info(f"Starting import for {importer_name}")
61 advisory_datas = importer_class().advisory_data()
62 count = self.process_advisories(advisory_datas=advisory_datas, importer_name=importer_name)
63 logger.info(f"Finished import for {importer_name}. Imported {count} advisories.")
64
65 def do_import(self, advisories) -> None:
66 advisory_importer = DefaultImporter(advisories=advisories)

Callers 9

test_import_runner_1Function · 0.95
legacy_runnerFunction · 0.45
set_apiMethod · 0.45
set_apiMethod · 0.45
run_importMethod · 0.45
import_dataMethod · 0.45
improve_dataMethod · 0.45

Calls 2

process_advisoriesMethod · 0.95
advisory_dataMethod · 0.45