MCPcopy Create free account
hub / github.com/actions/actions-runner-controller / bashRunScriptCmd

Method bashRunScriptCmd

testing/bash.go:35–42  ·  view source on GitHub ↗
(ctx context.Context, path string, cfg ScriptConfig)

Source from the content-addressed store, hash-verified

33}
34
35func (k *Bash) bashRunScriptCmd(ctx context.Context, path string, cfg ScriptConfig) *exec.Cmd {
36 cmd := exec.CommandContext(ctx, "bash", path)
37 cmd.Env = os.Environ()
38 cmd.Env = append(cmd.Env, cfg.Env...)
39 cmd.Dir = cfg.Dir
40
41 return cmd
42}

Callers 1

RunScriptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected