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

Method validatePromptTmpPaths

pkg/workflow/compiler_validators.go:89–94  ·  view source on GitHub ↗

validatePromptTmpPaths emits an advisory warning when the workflow markdown body references /tmp/ or /tmp/gh-aw/ instead of the recommended /tmp/gh-aw/agent/ root.

(workflowData *WorkflowData, markdownPath string)

Source from the content-addressed store, hash-verified

87// validatePromptTmpPaths emits an advisory warning when the workflow markdown body
88// references /tmp/ or /tmp/gh-aw/ instead of the recommended /tmp/gh-aw/agent/ root.
89func (c *Compiler) validatePromptTmpPaths(workflowData *WorkflowData, markdownPath string) {
90 if msg := warnPromptTmpPaths(workflowData.MarkdownContent); msg != "" {
91 fmt.Fprintln(os.Stderr, formatCompilerMessage(markdownPath, "warning", msg))
92 c.IncrementWarningCount()
93 }
94}
95
96// validateFeatureConfig validates feature flags declared in the workflow frontmatter
97// and applies any action-mode override specified via the "action-mode" feature flag.

Callers 2

validateExpressionsMethod · 0.95

Calls 3

IncrementWarningCountMethod · 0.95
warnPromptTmpPathsFunction · 0.85
formatCompilerMessageFunction · 0.85

Tested by 1