Skip to content

invalid-event

GitHub Actionscorrectnessno fixdefault: offgithub-actions/actionlint

Reports an event name, activity type, filter or schedule that the on section cannot have.

An event or activity type that GitHub does not have never fires. A misspelled pushh, or a type that the event does not have, means the workflow does not run when its author expects.

To fix, use the event, type and filter that the documentation lists.

Reported
...
pushh: {}
...
branches-ignore: [dev]
...
types: [opened, created]
...
tags: v1
...
- cron: '0 0 * *'
- cron: '0 0 * * 9'
...
- cron: '*/4 * * * *'
...
timezone: UTC
...
kind:
...
default: yes
...
default: x
...
default: 1
...
github-actions:
lint:
rules:
invalid-event: warn # off (default), warn, error

Enabled by the presets: github-actions/actionlint.

Suppress one line with sudsy-disable-next-line invalid-event 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 events/inputs partial A default that does not fit the type or the options, options on a non-choice input, a choice without options, a default on a required workflow_call input.
actionlint events partial Event names, activity types and the keys of event sections.
actionlint events/schedule partial Cron lines (field count, ranges); not time zones or the shortest interval.
actionlint events/filters partial A filter and its -ignore twin together.