flowpactworkflow contracts
Rules

FP609 · callee-not-reusable

A job calls a local workflow that has no `on.workflow_call` trigger.

CodeNameCategoryDefault severity
FP609callee-not-reusableGraph structure🔴 error

Why it matters

Only workflows with workflow_call can be called. GitHub rejects the caller ("is not a reusable workflow"), and none of the callee’s workflow_dispatch inputs count as a call interface.

How to fix

Add on: workflow_call: (with the inputs, secrets and outputs the callers need) to the called workflow, or call the right file.

Example

# deploy.yml
on:
  workflow_dispatch:
    inputs:
      target: { type: string, required: true }

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:
  FP609: off
  # or: callee-not-reusable: error

Explain it in the terminal:

flowpact explain FP609

On this page