Skip to content

Commit b0498c2

Browse files
committed
fix: use the correct type
Signed-off-by: Shiwei Zhang <[email protected]>
1 parent 4f35aa6 commit b0498c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/docker-ratify/pull.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88
"os/exec"
99

10-
"github.com/deislabs/ratify/pkg/verifier"
10+
"github.com/deislabs/ratify/pkg/executor/types"
1111
"github.com/spf13/cobra"
1212
"oras.land/oras-go/v2/registry/remote"
1313
)
@@ -72,15 +72,15 @@ func runRatifyVerify(ctx context.Context, config, ref string) error {
7272
if err != nil {
7373
return err
7474
}
75-
var report verifier.VerifierResult
75+
var report types.VerifyResult
7676
if err := json.Unmarshal(result, &report); err != nil {
7777
return err
7878
}
7979
if !report.IsSuccess {
8080
os.Stdout.Write(result)
8181
return fmt.Errorf("ratify verification failed")
8282
}
83-
if len(report.NestedResults) == 0 {
83+
if len(report.VerifierReports) == 0 {
8484
return fmt.Errorf("no ratifications found")
8585
}
8686
return nil

0 commit comments

Comments
 (0)