Skip to Content
flowpact

FP104 · unused-input

An input is declared but never read anywhere in the workflow or action.

CodeNameCategoryDefault severityReported by
FP104unused-inputInputs🟡 warninglint, check, the action, the editor

What you see

In the composite-actions fixture:

▲  WARN  FP104 unused-input
  Input "token" of .github/actions/install-tools is never read
  ▶ .github/actions/install-tools/action.yml:10:3

Why it matters

Dead inputs accumulate in large interfaces: callers keep computing and passing values that go nowhere, and readers assume a knob works when it does not.

How to fix

Remove the input (and the callers’ bindings), or wire it to where it was meant to be used.

Example

on:
  workflow_call:
    inputs:
      legacy-flag: { type: boolean }   # never referenced

Scope

Not reported in generated files, which are not edited by hand.

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[FP104] why):

.github/actions/install-tools/action.yml
# flowpact: ignore[FP104] why it is acceptable here
token:

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

.github/flowpact/flowpact.config.yml
overrides:
  - rule: FP104
    target: ".github/actions/install-tools#inputs.token"
    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 == "FP104") | .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:
  FP104: off
  # or: unused-input: error

Explain it in the terminal:

flowpact explain FP104
  • FP106 passthrough-dropped: A caller passes a value to an input that the callee declares but never reads.
  • FP108 undefined-input-ref: An expression reads inputs.<name> that the workflow or action does not declare.

On this page