From 922949a43ea21b10858962330ef8d8297ff40b0a Mon Sep 17 00:00:00 2001 From: Teppei Fukuda Date: Thu, 17 Oct 2024 12:12:44 +0400 Subject: [PATCH] test: use forked images (#7755) Signed-off-by: knqyf263 --- integration/testimages.ini | 4 ++-- pkg/attestation/attestation_test.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/integration/testimages.ini b/integration/testimages.ini index 1a7b8ef1a0c0..778fbc9b8e63 100644 --- a/integration/testimages.ini +++ b/integration/testimages.ini @@ -1,3 +1,3 @@ # Configuration file for both shell scripts and Go programs -TEST_IMAGES=ghcr.io/aquasecurity/trivy-test-images -TEST_VM_IMAGES=ghcr.io/aquasecurity/trivy-test-vm-images +TEST_IMAGES=ghcr.io/knqyf263/trivy-test-images +TEST_VM_IMAGES=ghcr.io/knqyf263/trivy-test-vm-images diff --git a/pkg/attestation/attestation_test.go b/pkg/attestation/attestation_test.go index de75b5676692..0233ba30cf78 100644 --- a/pkg/attestation/attestation_test.go +++ b/pkg/attestation/attestation_test.go @@ -9,7 +9,6 @@ import ( slsa "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common" "github.com/stretchr/testify/require" - "github.com/aquasecurity/trivy/internal/testutil" "github.com/aquasecurity/trivy/pkg/attestation" ) @@ -28,7 +27,7 @@ func TestStatement_UnmarshalJSON(t *testing.T) { PredicateType: "cosign.sigstore.dev/attestation/v1", Subject: []in_toto.Subject{ { - Name: testutil.ImageName("", "", ""), + Name: "ghcr.io/aquasecurity/trivy-test-images", // Defined in the attestations.json file Digest: slsa.DigestSet{ "sha256": "72c42ed48c3a2db31b7dafe17d275b634664a708d901ec9fd57b1529280f01fb", },