unknown-needs
What it does
Section titled “What it does”Reports a needs entry that names a job that the workflow does not define.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”... test: needs: build runs-on: ubuntu-latest deploy: needs: [Build, test, lint] runs-on: ubuntu-latestConfiguration
Section titled “Configuration”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.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| actionlint | job-needs/unknown |
full |