Skip to content

Commit 6f2b99d

Browse files
fix(deps): update module github.com/stacklok/toolhive-core to v0.0.9 (#816)
* fix(deps): update module github.com/stacklok/toolhive-core to v0.0.9 * Fix API changes Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com> --------- Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Radoslav Dimitrov <radoslav@stacklok.com>
1 parent 6f1f39b commit 6f2b99d

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

cmd/catalog/update_metadata.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiT
321321
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
322322
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
323323
github.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=
326326
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
327327
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
328328
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=

0 commit comments

Comments
 (0)