Skip to content

Commit

Permalink
Update calls to GetSigstoreKeysFromTuf
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <[email protected]>
  • Loading branch information
codysoyland committed Sep 3, 2024
1 parent 2ad4edb commit e543395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tester/trustroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")

Check warning on line 36 in cmd/tester/trustroot.go

View check run for this annotation

Codecov / codecov/patch

cmd/tester/trustroot.go#L36

Added line #L36 was not covered by tests
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, "")

Check warning on line 43 in cmd/tester/trustroot.go

View check run for this annotation

Codecov / codecov/patch

cmd/tester/trustroot.go#L43

Added line #L43 was not covered by tests
case tr.Spec.SigstoreKeys != nil:
return config.ConvertSigstoreKeys(context.Background(), tr.Spec.SigstoreKeys)
}
Expand Down

0 comments on commit e543395

Please sign in to comment.