Skip to Content
flowpact

FP611 · remotes-lock-invalid

The remote interfaces lockfile does not parse, or does not match its schema.

CodeNameCategoryDefault severityReported by
FP611remotes-lock-invalidGraph structure🔴 errorlint, check, the action, the editor

Why it matters

flowpact then checks no remote call against an interface: every remote reusable workflow and action is taken on trust, as without a lockfile.

How to fix

Run flowpact remotes update to write it again, or fix the entry the message names.

Example

# .github/flowpact/remotes.lock.yaml
version: 1
remotes:
  octo/setup@v2:
    sha: v2   # not a commit SHA
    kind: action

Accept 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 comes back when the date passes (overrides):

.github/flowpact/flowpact.config.yml
overrides:
  - rule: FP611
    target: <the finding's symbol>
    reason: Why it is acceptable here, at least 10 characters.
    expires: YYYY-MM-DD   # optional

target is the symbol the finding is about; to list them:

flowpact lint --format json | jq -r '.findings[] | select(.code == "FP611") | .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:

.github/flowpact/flowpact.config.yml
rules:
  FP611: off
  # or: remotes-lock-invalid: error

Explain it in the terminal:

flowpact explain FP611
  • FP612 remotes-lock-outdated: The remote interfaces lockfile lacks a remote workflow or action the repository uses, has one it no longer uses, or records another commit than the one a reference pins or GitHub’s actions.lock runs.
  • FP603 remote-unverified: A job calls a reusable workflow in another repository whose interface is not in the remote interfaces lockfile.
  • Remote interfaces

On this page