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

Method run

vulnerabilities/improve_runner.py:45–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.improver_class = improver_class
44
45 def run(self) -> None:
46 improver = self.improver_class()
47 logger.info(f"Running improver: {improver.qualified_name}")
48 for advisory in improver.interesting_advisories:
49 logger.info(f"Processing advisory: {advisory!r}")
50 try:
51 inferences = improver.get_inferences(advisory_data=advisory.to_advisory_data())
52 process_inferences(
53 inferences=inferences,
54 advisory=advisory,
55 improver_name=improver.qualified_name,
56 )
57 except Exception as e:
58 logger.info(f"Failed to process advisory: {advisory!r} with error {e!r}")
59 logger.info("Finished improving using %s.", self.improver_class.qualified_name)
60
61
62@transaction.atomic

Callers

nothing calls this directly

Calls 3

process_inferencesFunction · 0.70
get_inferencesMethod · 0.45
to_advisory_dataMethod · 0.45

Tested by

no test coverage detected