{"record":{"id":"59e268cce3f4df27","repo":"nektos/act","slug":"s-w","errorCode":null,"errorMessage":"%s%w","messagePattern":"%s%w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/schema/schema.go","lineNumber":224,"sourceCode":"\tfor {\n\t\tif i := strings.Index(val, \"${{\"); i != -1 {\n\t\t\tval = val[i+3:]\n\t\t} else {\n\t\t\treturn hadExpr, err\n\t\t}\n\t\thadExpr = true\n\n\t\tparser := actionlint.NewExprParser()\n\t\tlexer := actionlint.NewExprLexer(val)\n\t\texprNode, parseErr := parser.Parse(lexer)\n\t\tif parseErr != nil {\n\t\t\terr = errors.Join(err, fmt.Errorf(\"%sFailed to parse: %s\", formatLocation(node), parseErr.Message))\n\t\t\tcontinue\n\t\t}\n\t\tval = val[lexer.Offset():]\n\t\tcerr := s.checkSingleExpression(exprNode)\n\t\tif cerr != nil {\n\t\t\terr = errors.Join(err, fmt.Errorf(\"%s%w\", formatLocation(node), cerr))\n\t\t}\n\t}\n}\n\nfunc AddFunction(funcs *[]FunctionInfo, s string, i1, i2 int) {\n\t*funcs = append(*funcs, FunctionInfo{\n\t\tname: s,\n\t\tmin:  i1,\n\t\tmax:  i2,\n\t})\n}\n\nfunc (s *Node) UnmarshalYAML(node *yaml.Node) error {\n\tif node != nil && node.Kind == yaml.DocumentNode {\n\t\treturn s.UnmarshalYAML(node.Content[0])\n\t}\n\tdef := s.Schema.GetDefinition(s.Definition)\n\tif s.Context == nil {","sourceCodeStart":206,"sourceCodeEnd":242,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/schema/schema.go#L206-L242","documentation":"Wrapper from Node.checkExpression (schema.go:224) that prefixes a location (Line/Column) onto a semantic validation error (%w) produced by checkSingleExpression for a successfully-parsed expression. Itself not a distinct failure — it decorates errors 181-185 with YAML position info.","triggerScenarios":"Any of the checkSingleExpression failures (unknown function, unknown variable, arity mismatch, non-literal in no-context node) found in an interpolated ${{ }} value during schema validation.","commonSituations":"See the underlying error text after the location prefix; the fix targets the semantic problem, not this wrapper.","solutions":["Read the suffixed error (e.g. 'Unknown Function Call xyz') and fix that root cause","Use the reported Line/Column to jump to the exact YAML node","Re-run schema validation after each fix; multiple joined errors are reported together"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":"Unwrap with errors.Unwrap/errors.Join iteration to reach the semantic cause; fix that, not the wrapper.","preventionTips":["Always read past the 'Line: X Column Y:' prefix to the real error","Fix root causes (181-185), then re-run validation to clear the whole joined chain"],"tags":["go","act","schema-validation","error-wrapping","expressions"],"backgroundTag":null,"analyzedSha":"4f411281417e88660bea1c1a1749aa71ae0bd60f","analyzedAt":"2026-08-15T09:19:46.307Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}