Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Add CVEData to the table
for cve_data in self.formatted_output:
color = colors[cve_data["severity"]]
table.add_row(
f'[{color}]{cve_data["vendor"]} [/{color}]',
f'[{color}]{cve_data["product"]} [/{color}]',
f'[{color}]{cve_data["version"]} [/{color}]',
f'[{color}]{cve_data["cve_number"]} [/{color}]',
f'[{color}]{cve_data["severity"]} [/{color}]',
)
now = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
console.print(
Markdown(
textwrap.dedent(
f"""
# CVE BINARY TOOL
- cve-bin-tool Report Generated: {now}
"""
)
)
)
# Print the table to the console
console.print(table)