FP106 · passthrough-dropped
A caller passes a value to an input that the callee declares but never reads.
| Code | Name | Category | Default severity | Reported by |
|---|---|---|---|---|
FP106 | passthrough-dropped | Inputs | 🔵 info | lint, check, the action, the editor |
What you see
In the deep-nesting fixture:
● INFO FP106 passthrough-dropped
jobs.build passes "verbose" to .github/workflows/build.yml, which never reads it
▶ .github/workflows/pipeline.yml:25:7Why it matters
In deep call chains values are often forwarded level by level. When one level stops using an input, every caller above it keeps passing data that is silently dropped.
How to fix
Stop passing the value here, or make the callee actually use (or forward) it.
Example
jobs:
build:
uses: ./.github/workflows/build.yml
with:
target: linux
verbose: true # build.yml declares "verbose" but never reads itAccept 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[FP106] why):
# flowpact: ignore[FP106] why it is acceptable here
verbose: trueIn the config, with an override, which can expire:
overrides:
- rule: FP106
target: ".github/workflows/build.yml#inputs.verbose"
reason: Why it is acceptable here, at least 10 characters.
expires: YYYY-MM-DD # optionaltarget is the symbol the finding is about; to list them:
flowpact lint --format json | jq -r '.findings[] | select(.code == "FP106") | .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:
rules:
FP106: off
# or: passthrough-dropped: errorExplain it in the terminal:
flowpact explain FP106Related
FP104unused-input: An input is declared but never read anywhere in the workflow or action.
FP105 · optional-input-no-default-in-condition
An optional input that is '' when omitted (no default, or `default: ''`) decides an `if:` by its truthiness.
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: ''`).