From e5433958f4f5f5a56d8efc2d627367954f68e624 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Tue, 3 Sep 2024 15:07:04 -0400 Subject: [PATCH] Update calls to GetSigstoreKeysFromTuf Signed-off-by: Cody Soyland --- cmd/tester/trustroot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tester/trustroot.go b/cmd/tester/trustroot.go index c9ec1ebb7..1065c9add 100644 --- a/cmd/tester/trustroot.go +++ b/cmd/tester/trustroot.go @@ -33,14 +33,14 @@ func GetKeysFromTrustRoot(ctx context.Context, tr *v1alpha1.TrustRoot) (*config. if err != nil { return nil, fmt.Errorf("failed to initialize TUF client from remote: %w", err) } - return trustroot.GetSigstoreKeysFromTuf(ctx, client) + return trustroot.GetSigstoreKeysFromTuf(ctx, client, "") case tr.Spec.Repository != nil: client, err := tuf.ClientFromSerializedMirror(context.Background(), tr.Spec.Repository.MirrorFS, tr.Spec.Repository.Root, tr.Spec.Repository.Targets, v1alpha1.DefaultTUFRepoPrefix) if err != nil { return nil, fmt.Errorf("failed to initialize TUF client from remote: %w", err) } - return trustroot.GetSigstoreKeysFromTuf(ctx, client) + return trustroot.GetSigstoreKeysFromTuf(ctx, client, "") case tr.Spec.SigstoreKeys != nil: return config.ConvertSigstoreKeys(context.Background(), tr.Spec.SigstoreKeys) }