Skip to Content
flowpact

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.

CodeNameCategoryDefault severityReported by
FP612remotes-lock-outdatedGraph structure🟡 warninglint, check, the action, the editor

Why it matters

A reference the lockfile lacks is not checked (unless --fetch-remotes or the action’s remotes: fetch fetches it for the run). It happens when a reference moves to another version, for example in a pull request from Renovate or Dependabot, until the lockfile is updated. A reference pinned to a full commit SHA (octo/setup@<sha>) runs that commit, so an entry that records another one describes other code: it is not used, and the calls are not checked. flowpact remotes update never writes such an entry; an edit to the lockfile did. A reference that GitHub’s .github/workflows/actions.lock pins runs the commit it records, even after its tag moves: an entry that records another one (the bot that updated actions.lock left the lockfile as it was) is still used, though it may describe other inputs than run.

How to fix

Run flowpact remotes update and commit the lockfile (see the Renovate and Dependabot recipes in the docs).

Example

# a workflow now uses octo/setup@v3; the lockfile still records @v2
version: 1
remotes:
  octo/setup@v2:
    sha: 0123456789abcdef0123456789abcdef01234567
    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: FP612
    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 == "FP612") | .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:
  FP612: off
  # or: remotes-lock-outdated: error

Explain it in the terminal:

flowpact explain FP612
  • FP603 remote-unverified: A job calls a reusable workflow in another repository whose interface is not in the remote interfaces lockfile.
  • FP611 remotes-lock-invalid: The remote interfaces lockfile does not parse, or does not match its schema.
  • FP614 actions-lock-unreadable: GitHub’s .github/workflows/actions.lock does not parse, or has a schema version flowpact does not read.
  • Remote interfaces

On this page