# 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](https://github.com/rhysd/actionlint/releases/tag/v1.7.12) for your platform. Put the binary on PATH. Download the [fixture runner](../lint-pair.py) into an empty directory, then run:

```sh
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.

[Recorded command and output](./observed.json) · [actionlint workflow checks](https://github.com/rhysd/actionlint/blob/v1.7.12/docs/checks.md)
