FP603 · remote-unverified
A job calls a reusable workflow in another repository whose interface is not in the remote interfaces lockfile.
| Code | Name | Category | Default severity | Reported by |
|---|---|---|---|---|
FP603 | remote-unverified | Graph structure | 🔵 info | lint, check, the action, the editor |
What you see
In the cycles fixture:
● INFO FP603 remote-unverified
jobs.remote calls remote workflow octo-org/shared/.github/workflows/lint.yml@v2; its interface is not verified
▶ .github/workflows/main.yml:10:11Why it matters
flowpact analyzes this repository only, so inputs, secrets and outputs of the remote workflow are taken on trust, unless .github/flowpact/remotes.lock.yaml records its interface.
How to fix
Run flowpact remotes update to record its interface and have it checked, or nothing. If the workflow lives in this repository, set repository: owner/repo in the config so it resolves locally.
Example
jobs:
lint:
uses: octo-org/shared/.github/workflows/lint.yml@v2 # no entry in the lockfile
with:
strict: trueAccept 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[FP603] why):
# flowpact: ignore[FP603] why it is acceptable here
uses: octo-org/shared/.github/workflows/lint.yml@v2In the config, with an override, which can expire:
overrides:
- rule: FP603
target: "remote:octo-org/shared/.github/workflows/lint.yml@v2"
reason: Why it is acceptable here, at least 10 characters.
expires: YYYY-MM-DD # optionaltarget is the symbol the finding is about; to list them:
flowpact lint --format json | jq -r '.findings[] | select(.code == "FP603") | .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:
rules:
FP603: off
# or: remote-unverified: errorExplain it in the terminal:
flowpact explain FP603Related
FP612remotes-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.FP611remotes-lock-invalid: The remote interfaces lockfile does not parse, or does not match its schema.- Remote interfaces