FP614 · actions-lock-unreadable
GitHub’s `.github/workflows/actions.lock` does not parse, or has a schema version flowpact does not read.
| Code | Name | Category | Default severity | Reported by |
|---|---|---|---|---|
FP614 | actions-lock-unreadable | Graph structure | 🟡 warning | lint, check, the action, the editor |
Why it matters
flowpact reads a remote action at the commit actions.lock pins, which is the one GitHub runs. Without the file, each action is read where its ref points now, which can be another commit with other inputs, and FP612 no longer compares the remote interfaces lockfile with it. GitHub still runs the pinned commits.
How to fix
For a schema version flowpact does not read yet (it reads v0.0.x), upgrade flowpact. For a file that does not parse, write it again with gh actions-lock.
Example
# .github/workflows/actions.lock, from a gh actions-lock newer than flowpact
version: 'v0.1.0'
workflows:
'.github/workflows/ci.yml':
- 'octo/setup@v2'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):
overrides:
- rule: FP614
target: <the finding's symbol>
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 == "FP614") | .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:
FP614: off
# or: actions-lock-unreadable: errorExplain it in the terminal:
flowpact explain FP614Related
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.- GitHub’s actions.lock