CI failure ignored
This is how the comment reads inline, under the flagged line.
Why it matters
CI is only worth having if red means red. || true, continue-on-error and --no-verify make failures look like success.
What to do
Remove the escape hatch and fix the failure. If a step is optional, delete it.
Examples
run: npm test || true
run: npm test
What it catches
It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.
Flagged
.github/workflows/ci.yml
- run: npm test || true
.github/workflows/ci.yml
continue-on-error: true
Left alone
.github/workflows/ci.yml
- run: npm test
Research
CI steps that ignore failure (`continue-on-error`, `\|\| true`, `--no-verify`) and test-only branches in shipped code. Any check passes once you edit the check or the code path it runs.
- Agents that game test suites (arXiv)
- Reward hacking in coding agents (arXiv)
- skill: ci-integrity-audit
Turn it off or change it
In a config file for the CLI, or in the API's rules field:
{
"rules": {
"disable": [
"ci-escape-hatch"
],
"severity": {
"ci-escape-hatch": "low"
}
}
}
|| truelets a failing step pass.