Skip to Content
flowpact

FP606 · missing-local-target

A local `uses: ./...` or `uses: $/...` points to a workflow or action that does not exist where GitHub looks for it, or is written in a form GitHub rejects.

CodeNameCategoryDefault severityReported by
FP606missing-local-targetGraph structure🔴 errorlint, check, the action, the editor

What you see

In the cycles fixture:

✖  ERROR  FP606 missing-local-target
  Workflow ".github/workflows/does-not-exist.yml" does not exist
  ▶ .github/workflows/main.yml:8:11

Why it matters

The job or step fails as soon as it is reached, usually after a rename or move. A step’s ./path is relative to the runner’s workspace: flowpact maps it through the actions/checkout steps before it (for a composite action, each caller’s) and reports it when it lands in this repository but is missing, or when no checkout puts this repository where it points. Paths it cannot read are FP610.

How to fix

Fix the path or restore the missing file. A step’s ./path includes the path: this repository is checked out to, and needs a checkout that puts it there; $/path and a job’s ./path are relative to the repository root whatever the checkout, and $/ takes no @ref (it always runs the running commit).

Example

- uses: actions/checkout@v5
  with:
    path: src/app
- uses: ./src/app/.github/actions/biuld

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 does not fail the build.

On its line, with an ignore comment alone on the line above it (the editor's quick fix adds it there) or at the end of the line, after any other comment such as a version (# v4.3.0 # flowpact: ignore[FP606] why):

.github/workflows/main.yml
# flowpact: ignore[FP606] why it is acceptable here
uses: ./.github/workflows/does-not-exist.yml

In the config, with an override, which can expire:

.github/flowpact/flowpact.config.yml
overrides:
  - rule: FP606
    target: ".github/workflows/does-not-exist.yml"
    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 == "FP606") | .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:
  FP606: off
  # or: missing-local-target: error

Explain it in the terminal:

flowpact explain FP606
  • FP610 workspace-unverified: A step’s uses: ./... points to a place in the runner’s workspace that flowpact cannot read, so the action is not verified.

On this page