flowpactworkflow contracts
Rules

FP602 · nesting-depth

A chain of reusable workflow calls is deeper than the configured limit (`limits.nestingDepth`).

CodeNameCategoryDefault severity
FP602nesting-depthGraph structure🔴 error

Why it matters

GitHub limits how deeply reusable workflows can be nested and fails the run when the limit is exceeded. Deep chains are also where values get lost between levels.

How to fix

Flatten the chain (call leaf workflows directly from a higher level). GitHub allows at most 10 levels; lower limits.nestingDepth to enforce a stricter internal limit.

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:
  FP602: off
  # or: nesting-depth: error

Explain it in the terminal:

flowpact explain FP602

On this page