Skip to content

invalid-job-id

GitHub Actionscorrectnessno fixdefault: errorgithub-actions/actionlint

Reports a job id that does not start with a letter or _, or that has a character other than letters, digits, - and _.

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.

Reported
...
runs-on: ubuntu-latest
_x-1:
runs-on: ubuntu-latest
build app:
runs-on: ubuntu-latest
1st:
runs-on: ubuntu-latest
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.

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

Tool Rule Match
actionlint id/job full