Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance products with no identified vulnerabilities #3254

Merged
merged 3 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cve_bin_tool/output_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,12 @@ def output_pdf(
[10, 10, 10],
)
row = 1
products_with_cves = list(map(lambda x: x[1], all_cve_data))
for product_data in all_product_data:
if all_product_data[product_data] == 0:
if (
all_product_data[product_data] == 0
and product_data.product not in products_with_cves
):
product_entry = [
product_data.vendor,
product_data.product,
Expand Down
6 changes: 5 additions & 1 deletion cve_bin_tool/output_engine/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,12 @@ def validate_cell_length(cell_name, cell_type):
table.add_column("Product")
table.add_column("Version")

products_with_cves = list(map(lambda x: x[1], all_cve_data))
for product_data in all_product_data:
if all_product_data[product_data] == 0:
if (
all_product_data[product_data] == 0
and product_data.product not in products_with_cves
):
cells = [
Text.styled(product_data.vendor, color),
Text.styled(product_data.product, color),
Expand Down