Skip to Content
flowpact

FP102 · unknown-input

A caller passes an input the reusable workflow or local action does not declare.

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

What you see

In the composite-actions fixture:

✖  ERROR  FP102 unknown-input
  .github/actions/install-tools has no input "version-file" — did you mean "versions-file"?
  ▶ .github/workflows/build.yml:13:11

Why it matters

GitHub rejects undeclared inputs to reusable workflows, and ignores them (with a warning in the log) for actions. Usually it is a typo or a leftover after an input was renamed, so the value you meant to pass never arrives.

How to fix

Rename the key to the declared input, declare the input in the callee, or remove the stale binding.

Example

with:
  confg: release   # test.yml declares "config"

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

.github/workflows/build.yml
# flowpact: ignore[FP102] why it is acceptable here
version-file: .tool-versions

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

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

Explain it in the terminal:

flowpact explain FP102
  • FP101 missing-required-input: A reusable workflow or local action is called without one of its required inputs.
  • FP108 undefined-input-ref: An expression reads inputs.<name> that the workflow or action does not declare.
  • Remote interfaces

On this page