# lintWorkflowYaml (/docs/api/functions/lintWorkflowYaml)



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

Defined in: [packages/core/src/lint.ts:39](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/lint.ts#L39)

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 [#parameters]

### yamlText [#yamltext]

`string`

### fileName [#filename]

`string`

### mode [#mode]

[`LintMode`](../type-aliases/LintMode.mdx)

### runner [#runner]

[`ActionlintRunner`](../type-aliases/ActionlintRunner.mdx)

## Returns [#returns]

[`Diagnostic`](../interfaces/Diagnostic.mdx)\[]


## Sitemap

Browse the full documentation: [Markdown sitemap](https://austenstone.github.io/actio/sitemap.md) · [XML sitemap](https://austenstone.github.io/actio/sitemap.xml)