What the setting does#
The workflow syntax reference describes the step-level key in two sentences: "Prevents a job from failing when a step fails. Set to true to allow a job to pass when this step fails." Workflow syntax: steps continue-on-error The contexts reference shows the two results GitHub keeps for such a step: "When a continue-on-error step fails, the outcome is failure, but the final conclusion is success." Contexts reference: steps
A required status check from GitHub Actions is the job's check, named after the job (troubleshooting rules). The branch rule reads that job's conclusion, not the outcome of each step. If the job passes, the requirement is met, whatever happened inside it.
The job-level key works one level up. The reference says it "Prevents a workflow run from failing when a job fails," and its example uses it to let one experimental matrix entry fail (workflow syntax: jobs continue-on-error). The docs do not describe that job's own check conclusion, so do not assume either way. What they do describe is that the run passes. A gate job or tool that reads results through needs can also see success: the re-actors/alls-green README recommends job-level continue-on-error exactly so that its aggregate check will "see" a failing matrix entry "as a success" (README, read 2026-11-23). That is intended when the entry is experimental, and a hole when it is not.
A fictional temporary exception#
Suppose acme/inventory requires test on main. During a week of flaky database tests, an engineer adds continue-on-error to the test step so that unrelated pull requests can merge:
name: ci
on:
pull_request:
merge_group:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: npm ci
- name: Run tests
# Flaky DB tests; remove once fixed.
continue-on-error: true
run: npm test
The flake gets fixed. The comment stays, and so does the setting. Two months later a pull request breaks stock reservation logic, npm test fails with three real failures, and the test job reports success. The merge box shows the required test check green, the reviewer approves on the strength of it, and the pull request merges. The failure is visible only to someone who opens the job log and sees the failed step inside a passing job.
Nothing in the policy failed. The branch rule required test, and test passed. The workflow changed what test means, and the rule has no way to see that.
Find and limit it#
Start with a search of the workflow files in a checkout of each repository:
grep -rn "continue-on-error" .github/workflows/
For each hit, ask whether the job it belongs to, or any job that reads it through needs, produces a required check. If it does, choose one of three changes.
- Remove the setting. If the tests are flaky, fix them or quarantine them by name inside the test runner, so the remaining tests still fail the job.
- Move the tolerated work into its own job that no rule requires. A separate
test-flakyjob can fail in plain view without touching the requiredtestcheck. - Keep the setting but make the job fail at the end when the step's
outcomewasfailure, if the step must run to completion for some other reason, such as uploading logs.
The third option uses the outcome that the contexts reference documents:
- name: Run tests
id: tests
continue-on-error: true
run: npm test
- name: Upload test logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-logs
path: test-results/
- name: Fail the job if tests failed
if: ${{ steps.tests.outcome == 'failure' }}
run: exit 1
A plainer form of the same idea skips continue-on-error and puts if: ${{ always() }} on the upload step, so the upload runs after a failure and the job still fails.
To stop the setting from coming back unnoticed, give .github/workflows/ a code owner and require code owner review (a pull request that edits its own workflow). A reviewer who owns CI is more likely to ask why a required job tolerates failure.
What this does not catch#
The search finds only the keyword. Shell constructs do the same thing without it: npm test || true in a run step exits zero, so the step and its job succeed. Look for || true, set +e, and test commands whose exit status is discarded. The same goes for a test runner configured to exit zero on failure; that lives in the runner's configuration, not in the workflow.
A job skipped by an if: condition is another route to a green required check without a passing test (a skipped job satisfies a required check).
What it costs#
Removing a tolerated failure brings the original problem back. If the tests were flaky, unrelated pull requests will be blocked again until someone fixes or quarantines them, and that pressure is why the setting was added. A separate non-required job keeps the signal visible without blocking, but people learn to ignore a job that is always red, so give it an owner and a date.
The decision#
Allow continue-on-error only on jobs and steps that no required check depends on, and only for work whose failure you would accept on main. Search for it, and for || true, whenever you add or audit a required check. When a failure must be tolerated temporarily, put it in a separate job with an owner instead of inside the required one.