File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -192,20 +192,15 @@ func verifyServerProvenance(
192192 return fmt .Errorf ("failed to convert for verification: %w" , err )
193193 }
194194
195- v , err := verifier .New (imgMeta , authn .DefaultKeychain )
195+ v , err := verifier .New (imgMeta . Provenance , authn .DefaultKeychain )
196196 if err != nil {
197197 return fmt .Errorf ("failed to create verifier: %w" , err )
198198 }
199199
200- isVerified , err := v .VerifyServer (imgMeta .Image , imgMeta )
201- if err != nil {
200+ if err := v .VerifyServer (imgMeta .Image , imgMeta .Provenance ); err != nil {
202201 return fmt .Errorf ("verification failed: %w" , err )
203202 }
204203
205- if ! isVerified {
206- return fmt .Errorf ("no verified signatures found" )
207- }
208-
209204 if verbose {
210205 fmt .Println ("Provenance verified successfully" )
211206 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
88 github.com/mark3labs/mcp-go v0.44.1
99 github.com/modelcontextprotocol/registry v1.4.1
1010 github.com/spf13/cobra v1.10.2
11- github.com/stacklok/toolhive-core v0.0.7
11+ github.com/stacklok/toolhive-core v0.0.9
1212 github.com/stretchr/testify v1.11.1
1313)
1414
Original file line number Diff line number Diff line change @@ -321,8 +321,8 @@ github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiT
321321github.com/spf13/pflag v1.0.9 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
322322github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk =
323323github.com/spf13/pflag v1.0.10 /go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg =
324- github.com/stacklok/toolhive-core v0.0.7 h1:AW0dmSDOJjUCynlUQMXH+ODNeqPWRHf370gkvRdMO+E =
325- github.com/stacklok/toolhive-core v0.0.7 /go.mod h1:LhtXDsHbj5CcNKBJDzPAA2Y4fmYAEVDFSGlGuLkAsK4 =
324+ github.com/stacklok/toolhive-core v0.0.9 h1:LSZBobSSuAkWhBhFpO5rBVlpp/cTxSI6m/rEyYFbjdY =
325+ github.com/stacklok/toolhive-core v0.0.9 /go.mod h1:LhtXDsHbj5CcNKBJDzPAA2Y4fmYAEVDFSGlGuLkAsK4 =
326326github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
327327github.com/stretchr/testify v1.3.0 /go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI =
328328github.com/stretchr/testify v1.4.0 /go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4 =
You can’t perform that action at this time.
0 commit comments