Skip to content

Commit 922949a

Browse files
authored
test: use forked images (#7755)
Signed-off-by: knqyf263 <[email protected]>
1 parent 778df82 commit 922949a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

integration/testimages.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Configuration file for both shell scripts and Go programs
2-
TEST_IMAGES=ghcr.io/aquasecurity/trivy-test-images
3-
TEST_VM_IMAGES=ghcr.io/aquasecurity/trivy-test-vm-images
2+
TEST_IMAGES=ghcr.io/knqyf263/trivy-test-images
3+
TEST_VM_IMAGES=ghcr.io/knqyf263/trivy-test-vm-images

pkg/attestation/attestation_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
slsa "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common"
1010
"github.com/stretchr/testify/require"
1111

12-
"github.com/aquasecurity/trivy/internal/testutil"
1312
"github.com/aquasecurity/trivy/pkg/attestation"
1413
)
1514

@@ -28,7 +27,7 @@ func TestStatement_UnmarshalJSON(t *testing.T) {
2827
PredicateType: "cosign.sigstore.dev/attestation/v1",
2928
Subject: []in_toto.Subject{
3029
{
31-
Name: testutil.ImageName("", "", ""),
30+
Name: "ghcr.io/aquasecurity/trivy-test-images", // Defined in the attestations.json file
3231
Digest: slsa.DigestSet{
3332
"sha256": "72c42ed48c3a2db31b7dafe17d275b634664a708d901ec9fd57b1529280f01fb",
3433
},

0 commit comments

Comments
 (0)