invalid-job-id
What it does
Section titled “What it does”Reports a job id that does not start with a letter or _, or that has a character other than letters, digits, - and _.
Why it matters
Section titled “Why it matters”GitHub rejects the workflow with a message about the id, and in expressions the id is used as a name (needs.<id>), where other characters do not work.
To fix, rename the job.
Example
Section titled “Example”... runs-on: ubuntu-latest _x-1: runs-on: ubuntu-latest build app: runs-on: ubuntu-latest 1st: runs-on: ubuntu-latestConfiguration
Section titled “Configuration”github-actions: lint: rules: invalid-job-id: error # off, warn, error (default)Enabled by the presets: github-actions/actionlint.
Suppress one line with sudsy-disable-next-line invalid-job-id 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 | id/job |
full |