Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What was missed
Issue #57 explicitly required using
github.com/goccy/go-yamlv1.16.0 or later, with a documented security rationale:PR #58 instead added
gopkg.in/yaml.v3(the abandoned library the issue explicitly rejected). The PR implements the YAML depth defense withMaxYAMLDepth/MaxYAMLNodesconstants, but uses the wrong underlying library.Note:
gopkg.in/yaml.v3has its own YAML parsing quirks and lacks active maintenance. The explicit library choice in the issue was not honored.Source
go.modline containinggopkg.in/yaml.v3 v3.0.1What needs to happen
gopkg.in/yaml.v3withgithub.com/goccy/go-yamlat v1.16.0+review/persona.goimport fromgopkg.in/yaml.v3togithub.com/goccy/go-yamlgopkg.in/yaml.v3fromgo.modandgo.sumgo build ./...andgo test ./...passReferences