flowpactworkflow contracts
Rules

FP103 · input-type-mismatch

A literal value passed to a typed `workflow_call` input has the wrong type.

CodeNameCategoryDefault severity
FP103input-type-mismatchInputs🔴 error

Why it matters

Reusable workflow inputs are typed (string, boolean, number). Passing "true" (a string) to a boolean input fails the run when the call is evaluated, typically on a code path you did not test locally.

How to fix

Pass a value of the declared type (unquoted true/false for booleans, an unquoted number for numbers).

Example

with:
  dry-run: "true"   # declared type: boolean

Configure

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:
  FP103: off
  # or: input-type-mismatch: error

Explain it in the terminal:

flowpact explain FP103

On this page