From c6f792a5758f5d75f0eb320fe3210519b06bd7ba Mon Sep 17 00:00:00 2001 From: Chris Ainsworth-Patrick Date: Mon, 8 Jul 2024 16:55:21 +0100 Subject: [PATCH] Update vulnerabilities_test.go --- policy/data/vulnerabilities_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/data/vulnerabilities_test.go b/policy/data/vulnerabilities_test.go index 686b6aa..1185b20 100644 --- a/policy/data/vulnerabilities_test.go +++ b/policy/data/vulnerabilities_test.go @@ -131,6 +131,11 @@ func Test_GetImageVulnerabilities_WhenSbomHasVulnerabilities(t *testing.T) { func Test_GetImageVulnerabilities_WhenSbomHasArtifacts_AndNoVulnerabilities(t *testing.T) { sbom := types.SBOM{ + Source: types.Source{ + Image: &types.ImageSource{ + Digest: "sha256:123456", + }, + }, Artifacts: []types.Package{ { Purl: "pkg:pypi/requests@2.25.1",