Validate a GitHub Actions expression
This case checks one consequential workflow typo. The workflow passes an event name to a job step through an environment variable. The clean expression reads github.event_name. Changing the context to githbu.event_name makes the expression invalid before the workflow can run.
Repeat the check
Install Python 3 and the actionlint 1.7.12 binary for your platform. Put the binary on PATH. Download the fixture runner into an empty directory, then run:
python3 lint-pair.py actionlint
The runner creates both inputs in a temporary directory, verifies the tool version and invokes actionlint -color=false -shellcheck= -pyflakes= workflow.yaml. The empty optional-tool flags isolate actionlint’s own expression check. The runner fails if the clean input produces a nonzero exit status or if the regressed input fails to produce both exit 1 and the expected rule and identifier.
Recorded result
On 28 November 2026 the clean workflow returned 0 with no diagnostics. The one-token change returned 1. At line 9, column 27, actionlint reported the unknown githbu context with rule expression. This demonstrates static expression validation. The fixture does not contact GitHub or execute a workflow.