cyclic-needs
What it does
Section titled “What it does”Reports jobs whose needs form a cycle, such as a needing b and b needing a.
Why it matters
Section titled “Why it matters”A job starts when the jobs it needs have finished. In a cycle each job waits for another, so none of them can start, and GitHub rejects the workflow.
To fix, remove one of the needs that closes the cycle.
Example
Section titled “Example”jobs: a: needs: b b: needs: [c]...Configuration
Section titled “Configuration”github-actions: lint: rules: cyclic-needs: error # off, warn, error (default)Enabled by the presets: github-actions/actionlint.
Suppress one line with sudsy-disable-next-line cyclic-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/cycle |
full |