{"record":{"id":"d66e2d455f47b12d","repo":"GoogleContainerTools/skaffold","slug":"creating-actiosn-runner-w","errorCode":null,"errorMessage":"creating actiosn runner: %w","messagePattern":"creating actiosn runner: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/skaffold/runner/new.go","lineNumber":117,"sourceCode":"\n\tplatforms, err := platform.NewResolver(ctx, runCtx.Pipelines.All(), rOpts)\n\tif err != nil {\n\t\tendTrace(instrumentation.TraceEndError(err))\n\t\treturn nil, fmt.Errorf(\"getting target platforms: %w\", err)\n\t}\n\n\tvar verifier verify.Verifier\n\tverifier, err = GetVerifier(ctx, runCtx, labeller)\n\tif err != nil {\n\t\tendTrace(instrumentation.TraceEndError(err))\n\t\treturn nil, fmt.Errorf(\"creating verifier: %w\", err)\n\t}\n\n\tvar acsRunner ActionsRunner\n\tacsRunner, err = GetActionsRunner(ctx, runCtx, labeller, runCtx.VerifyDockerNetwork(), runCtx.Opts.VerifyEnvFile)\n\tif err != nil {\n\t\tendTrace(instrumentation.TraceEndError(err))\n\t\treturn nil, fmt.Errorf(\"creating actiosn runner: %w\", err)\n\t}\n\n\tdepLister := func(ctx context.Context, artifact *latest.Artifact, tag string) ([]string, error) {\n\t\tctx, endTrace := instrumentation.StartTrace(ctx, \"NewForConfig_depLister\")\n\t\tdefer endTrace()\n\n\t\tbuildDependencies, err := sourceDependencies.SingleArtifactDependencies(ctx, artifact, tag)\n\t\tif err != nil {\n\t\t\tendTrace(instrumentation.TraceEndError(err))\n\t\t\treturn nil, err\n\t\t}\n\n\t\ttestDependencies, err := tester.TestDependencies(ctx, artifact)\n\t\tif err != nil {\n\t\t\tendTrace(instrumentation.TraceEndError(err))\n\t\t\treturn nil, err\n\t\t}\n\t\treturn append(buildDependencies, testDependencies...), nil","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/pkg/skaffold/runner/new.go#L99-L135","documentation":"`GetActionsRunner` builds the runner for custom actions (`skaffold run action` / actions config). This wraps its construction failure in `NewForConfig`. Note the message contains a typo: \"actiosn runner\" instead of \"actions runner\" — a known cosmetic bug in the source.","triggerScenarios":"skaffold.yaml `actions:` config fails during runner construction: malformed action definitions (bad container image, invalid name, missing command), invalid env file path passed via `--verify-env-file`, or unusable docker network setting from `--verify-docker-network`.","commonSituations":"`--verify-env-file` pointing at a nonexistent file; `--verify-docker-network` naming a network that doesn't exist; actions entries missing required container fields; schema drift after upgrading skaffold.","solutions":["Read the wrapped error and fix the failing `actions:` entry in skaffold.yaml.","Ensure the env file passed to `--verify-env-file` exists and is a valid KEY=VALUE file.","Create the referenced docker network (`docker network create <name>`) or drop `--verify-docker-network`.","Validate config with `skaffold diagnose`."],"exampleFix":"// command before\nskaffold run action --verify-env-file ./missing.env\n// after\nskaffold run action --verify-env-file ./test.env","handlingStrategy":"validation","validationCode":"func envFileValid(path string) error {\n  if path == \"\" { return nil }\n  f, err := os.Open(path)\n  if err != nil { return err }\n  defer f.Close()\n  return nil // optionally scan for KEY=VALUE lines\n}","typeGuard":null,"tryCatchPattern":"runner, err := runner.NewForConfig(runCtx)\nif err != nil {\n  if strings.Contains(err.Error(), \"actiosn runner\") {\n    return fmt.Errorf(\"actions config invalid: %w\", err)\n  }\n  return err\n}","preventionTips":["Verify --verify-env-file exists and contains KEY=VALUE lines.","Create the docker network referenced by --verify-docker-network beforehand.","Complete all required container fields for each action in skaffold.yaml.","Run `skaffold diagnose` to validate actions config; note the error message typo ('actiosn') when grepping logs."],"tags":["config","actions","typo","docker"],"backgroundTag":"actions-runner-init-failed","analyzedSha":"a1189de023efc32d4b8e11f395acc678aa555011","analyzedAt":"2026-09-05T12:09:27.064Z","contentChangedAt":"2026-09-05T12:09:27.064Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}