Rules
FP401 · empty-binding-for-matrix-combo
An input passed under `with:` is empty for some matrix combinations because a matrix key is missing there.
| Code | Name | Category | Default severity |
|---|---|---|---|
FP401 | empty-binding-for-matrix-combo | Matrix | 🔴 error |
Why it matters
GitHub evaluates a missing matrix key to an empty string — no error, no warning. The affected matrix leg runs with an empty input, so the callee may skip its real work (e.g. a test configuration) while the run stays green.
How to fix
Define the key in every combination (add it to the include entry or a matrix dimension), or add an explicit fallback: $\{\{ matrix.key || 'default' \}\}.
Example
strategy:
matrix:
include:
- name: linux
config: ci-linux.json
- name: windows # no "config" → empty input
uses: ./.github/workflows/run-tests.yml
with:
config: ${{ matrix.config }}Configure
Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:
rules:
FP401: off
# or: empty-binding-for-matrix-combo: errorExplain it in the terminal:
flowpact explain FP401