Actio
API ReferenceFunctions

lintWorkflowYaml

function lintWorkflowYaml(
   yamlText, 
   fileName, 
   mode, 
   runner): Diagnostic[];

Defined in: packages/core/src/lint.ts:39

Lint generated workflow YAML with actionlint and return diagnostics at the mode's severity. Findings carry generated-line ranges that transpile remaps back to the originating .actio.yml position via the source map. When the binary is absent the linter is skipped with a single informational note.

Parameters

yamlText

string

fileName

string

mode

LintMode

runner

ActionlintRunner

Returns

Diagnostic[]

On this page