redline
HighTests and CIci-escape-hatch

CI failure ignored

CI failure ignored. || true lets a failing step pass.

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

Flagged
run: npm test || true
Better
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.

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"
    }
  }
}

Read the source or report a false positive.