Skip to content

Commit

Permalink
fix(container): Write image base
Browse files Browse the repository at this point in the history
fix(container): Write image base
  • Loading branch information
sarbole authored Dec 18, 2024
2 parents 6d3cf9d + 555de4c commit 76f2de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _write_image_base(self, result_file, base_image, exclusions_data):
for exclusion in prisma_exclusions:
if (
vulnerability.get("id") == exclusion.get("id") and
any(image.startswith(base_image) for image in exclusion.get("source_images", []))
any(image.startswith(base_image) for image in exclusion.get("x86.image.name", []))
):
vulnerability["baseImage"] = base_image
modified = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_write_image_base_success():
"PRISMA": [
{
"id": "CVE-1234-5678",
"source_images": ["python:3.9"]
"x86.image.name": ["python:3.9"]
}
]
}
Expand Down

0 comments on commit 76f2de0

Please sign in to comment.