Skip to Content
flowpact

FP101 · missing-required-input

A reusable workflow or local action is called without one of its required inputs.

CodeNameCategoryDefault severityReported by
FP101missing-required-inputInputs🔴 errorlint, check, the action, the editor

What you see

In the composite-actions fixture:

✖  ERROR  FP101 missing-required-input
  Step tools uses .github/actions/install-tools without required input "versions-file" — GitHub will run it with an empty value
  ▶ .github/workflows/build.yml:11:15

Why it matters

For reusable workflows GitHub fails the run when a required input is missing — even if the input also has a default, which is then never used. For composite actions required is not enforced at all: the step silently runs with an empty string (or the default), which is how test variants get skipped unnoticed.

How to fix

Pass the input under with:, or mark it required: false with a default if it is truly optional.

Example

jobs:
  test:
    uses: ./.github/workflows/test.yml
    with:
      suite: unit
      # "config" is required by test.yml but not passed

Accept one finding

When a finding is intended, accept it with a reason rather than turning the rule off. It is listed apart from the other findings, and does not fail the build.

On its line, with an ignore comment alone on the line above it (the editor's quick fix adds it there) or at the end of the line, after any other comment such as a version (# v4.3.0 # flowpact: ignore[FP101] why):

.github/workflows/build.yml
# flowpact: ignore[FP101] why it is acceptable here
uses: ./.github/actions/install-tools

In the config, with an override, which can expire:

.github/flowpact/flowpact.config.yml
overrides:
  - rule: FP101
    target: ".github/actions/install-tools#inputs.versions-file"
    reason: Why it is acceptable here, at least 10 characters.
    expires: YYYY-MM-DD   # optional

target is the symbol the finding is about; to list them:

flowpact lint --format json | jq -r '.findings[] | select(.code == "FP101") | .symbol'

* matches within a path segment and ** across segments, so one entry accepts every finding whose symbol matches: target: '**#inputs.app-id' is that input in every workflow and action.

Change the severity

Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:

.github/flowpact/flowpact.config.yml
rules:
  FP101: off
  # or: missing-required-input: error

Explain it in the terminal:

flowpact explain FP101
  • FP102 unknown-input: A caller passes an input the reusable workflow or local action does not declare.
  • FP103 input-type-mismatch: A literal value passed to a typed workflow_call input has the wrong type.
  • FP107 optional-forwarded-to-required: A required input of a callee is fed from an optional input that is '' when omitted (no default, or default: '').
  • Remote interfaces

On this page