MCPcopy Create free account
hub / github.com/github/gh-aw / readWorkflowFileContent

Function readWorkflowFileContent

pkg/cli/workflow_secrets.go:144–150  ·  view source on GitHub ↗

readWorkflowFileContent reads a workflow file's content as a string.

(filePath string)

Source from the content-addressed store, hash-verified

142
143// readWorkflowFileContent reads a workflow file's content as a string.
144func readWorkflowFileContent(filePath string) (string, error) {
145 content, err := os.ReadFile(filePath)
146 if err != nil {
147 return "", fmt.Errorf("reading workflow file %s: %w", filePath, err)
148 }
149 return string(content), nil
150}

Callers 1

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected