From 57c6e82fd59d3c178b946e5749fa0a431798e635 Mon Sep 17 00:00:00 2001 From: Bohan Chen Date: Tue, 11 Jun 2024 11:55:21 -0400 Subject: [PATCH] fix cosign command in tests Signed-off-by: Bohan Chen --- pkg/slsa/sign_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/slsa/sign_test.go b/pkg/slsa/sign_test.go index 434af016e..abd2e355e 100644 --- a/pkg/slsa/sign_test.go +++ b/pkg/slsa/sign_test.go @@ -254,10 +254,11 @@ MC4CAQAwBQYDK2VwBCIEIATRP4Od4Mta/KjTO7c99nfGL/PCUn9Grn7mnXCiIXuW it("generates the same image tag", func() { // attest image via cosign cmd := attest.AttestCommand{ - KeyOpts: options.KeyOpts{KeyRef: privKeyFile}, - TlogUpload: false, - PredicateType: options.PredicateSLSA1, - PredicatePath: predicateFile, + KeyOpts: options.KeyOpts{KeyRef: privKeyFile}, + TlogUpload: false, + PredicateType: options.PredicateSLSA1, + PredicatePath: predicateFile, + RekorEntryType: "dsse", } err := cmd.Exec(ctx, digest) require.NoError(t, err)