Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ require (
go.starlark.net v0.0.0-20260908191801-89a6a09411d5
go.uber.org/mock v0.6.0
go.uber.org/zap v1.28.0
go.yaml.in/yaml/v3 v3.0.5
golang.ngrok.com/ngrok/v2 v2.2.1
golang.org/x/crypto v0.58.0
golang.org/x/exp/jsonrpc2 v0.0.0-20261014143641-f0251eb4aa3e
Expand Down Expand Up @@ -326,7 +327,6 @@ require (
go.uber.org/atomic v1.12.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
golang.ngrok.com/muxado/v2 v2.0.1 // indirect
golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e // indirect
golang.org/x/exp/event v0.0.0-20261009195045-ca0d7ba23607 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pkg/skills/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"
"fmt"

"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)

// frontmatterDelimiter is the YAML frontmatter delimiter.
Expand Down
9 changes: 8 additions & 1 deletion pkg/skills/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)

func TestParseSkillMD(t *testing.T) {
Expand Down Expand Up @@ -189,6 +189,13 @@ toolhive.requires: |
content: "---\n: : invalid\n---\n",
wantErr: "invalid frontmatter",
},
{
// OSS-Fuzz 4870994700075008: a merge key next to a mapping-valued
// key panicked gopkg.in/yaml.v3 with "hash of unhashable type".
name: "merge key beside unhashable mapping key",
content: "---\n? {a: b}\n: c\n<<: {name: x}\n---\n",
wantErr: "invalid frontmatter",
},
{
name: "no body",
content: `---
Expand Down
2 changes: 1 addition & 1 deletion pkg/skills/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)

// Scope represents the scope at which a skill is installed.
Expand Down
Loading