{"record":{"id":"b740165ba0807a59","repo":"getsops/sops","slug":"yaml-documents-that-are-sequences-are-not-supporte","errorCode":null,"errorMessage":"YAML documents that are sequences are not supported","messagePattern":"YAML documents that are sequences are not supported","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"stores/yaml/store.go","lineNumber":130,"sourceCode":"\treturn nil, nil\n}\n\nfunc (store Store) appendYamlNodeToTreeBranch(node *yaml.Node, branch sops.TreeBranch, commentsWereHandled bool) (sops.TreeBranch, error) {\n\tvar err error\n\tif !commentsWereHandled {\n\t\tbranch = store.appendCommentToMap(node.HeadComment, branch)\n\t\tbranch = store.appendCommentToMap(node.LineComment, branch)\n\t}\n\tswitch node.Kind {\n\tcase yaml.DocumentNode:\n\t\tfor _, item := range node.Content {\n\t\t\tbranch, err = store.appendYamlNodeToTreeBranch(item, branch, false)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\tcase yaml.SequenceNode:\n\t\treturn nil, fmt.Errorf(\"YAML documents that are sequences are not supported\")\n\tcase yaml.MappingNode:\n\t\tfor i := 0; i < len(node.Content); i += 2 {\n\t\t\tkey := node.Content[i]\n\t\t\tvalue := node.Content[i+1]\n\t\t\tbranch = store.appendCommentToMap(key.HeadComment, branch)\n\t\t\tbranch = store.appendCommentToMap(key.LineComment, branch)\n\t\t\thandleValueComments := value.Kind == yaml.ScalarNode || value.Kind == yaml.AliasNode\n\t\t\tif handleValueComments {\n\t\t\t\tbranch = store.appendCommentToMap(value.HeadComment, branch)\n\t\t\t\tbranch = store.appendInlineCommentToMap(value.LineComment, branch)\n\t\t\t}\n\t\t\tvar keyValue interface{}\n\t\t\tkey.Decode(&keyValue)\n\t\t\tvalueTV, err := store.nodeToTreeValue(value, handleValueComments)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tbranch = append(branch, sops.TreeItem{","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/getsops/sops/blob/13442bb98183887d7a9ac09ec8ab0564673a59d8/stores/yaml/store.go#L112-L148","documentation":"Error \"YAML documents that are sequences are not supported\" thrown in getsops/sops.","triggerScenarios":"Thrown at stores/yaml/store.go:130 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13442bb98183887d7a9ac09ec8ab0564673a59d8","analyzedAt":"2026-09-01T03:53:00.447Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}