flowpactworkflow contracts
Rules

FP202 · unknown-secret

A caller passes a secret the reusable workflow does not declare.

CodeNameCategoryDefault severity
FP202unknown-secretSecrets🔴 error

Why it matters

GitHub rejects the call ("Invalid secret … is not defined in the referenced workflow").

How to fix

Declare the secret under on.workflow_call.secrets in the callee, fix the name, or remove it.

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:
  FP202: off
  # or: unknown-secret: error

Explain it in the terminal:

flowpact explain FP202

On this page