invalid-event
What it does
Section titled “What it does”Reports an event name, activity type, filter or schedule that the on section cannot have.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”... 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...Configuration
Section titled “Configuration”github-actions: lint: rules: invalid-event: warn # off (default), warn, errorEnabled by the presets: github-actions/actionlint.
Suppress one line with sudsy-disable-next-line invalid-event in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”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. |