FP810 · impact-under-declared
The changes to published workflows or actions need a bigger release than the pull request declares.
| Code | Name | Category | Default severity | Reported by |
|---|---|---|---|---|
FP810 | impact-under-declared | Contracts | 🔴 error | Impact mode |
Why it matters
Consumers pin a floating tag (@v1) or a version range and take every release in it, and read the version to judge an update. A change released at a lower level than it needs reaches them without warning: a breaking one released as a minor or patch leaves their required status check waiting forever or fails their run, and a new environment or check released as a patch changes their runs where they expected fixes only.
How to fix
Declare the required impact (for example retitle the pull request feat!: … for a major release), or keep the published interface and check names compatible.
Example
# PR title: "fix: tidy the test job"
jobs:
test:
name: Unit tests # was "Test": consumers' required check "… / Test" never reportsAccept 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: FP810
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 == "FP810") | .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.
An override counts only once it is on the base branch: impact mode reads the overrides and severities of its rules from the baseline's config, so a pull request cannot accept or switch off its own check. No ignore comment accepts its findings.
Change the severity
Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:
rules:
FP810: off
# or: impact-under-declared: errorA severity counts only once it is on the base branch, as impact mode reads it from the baseline's config.
Explain it in the terminal:
flowpact explain FP810Related
FP811impact-declaration-conflict: Another source declares a bigger impact than the one the release tool reads.FP812impact-over-declared: The pull request declares a bigger impact than its workflow and action changes require.FP813impact-undeclared: No release impact is declared; flowpact reports the impact the changes require.FP814impact-uncertain: A change to a published unit depends on something flowpact cannot evaluate statically.- Impact mode