Skip to content

outdated-action

GitHub Actionscorrectnessno fixdefault: offgithub-actions/actionlint

Reports a step that uses a popular action at a version whose runner (the Node version it runs on) is retired, from a list of actions kept with the rule.

GitHub retires the Node runtimes that old action versions use. Their jobs print deprecation warnings and, once the runtime is removed, fail.

To fix, update the action to a newer version.

Reported
...
a:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v3.1.0
- uses: ./local
github-actions:
lint:
rules:
outdated-action: warn # off (default), warn, error

Enabled by the presets: github-actions/actionlint.

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

The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.

Tool Rule Match What differs
actionlint action/outdated-runner partial The specs of actionlint’s list of outdated popular actions (data/outdated-actions.txt, copied from its pinned release).