Skip to content

unknown-needs

GitHub Actionscorrectnessno fixdefault: errorgithub-actions/actionlint

Reports a needs entry that names a job that the workflow does not define.

GitHub rejects the workflow. The usual cause is a job that was renamed or removed while another still waits for it.

To fix, correct the name, or remove it from needs.

Reported
...
test:
needs: build
runs-on: ubuntu-latest
deploy:
needs: [Build, test, lint]
runs-on: ubuntu-latest
github-actions:
lint:
rules:
unknown-needs: error # off, warn, error (default)

Enabled by the presets: github-actions/actionlint.

Suppress one line with sudsy-disable-next-line unknown-needs in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
actionlint job-needs/unknown full