/errors/github-actions/process-completed-with-exit-code-1
GitHub Actions: Error: Process completed with exit code 1
The commands on this page have not been executed by our verification runner yet.updated 2026-10-20
- tool
- GitHub Actions
- exit code
- 1
- versions
- GitHub Actions
- os
- any
Error: Process completed with exit code 1. is not the error itself. The runner prints it when the shell running a run: step exits with status 1. On Linux and macOS the default shell is bash -e, so the step stops at the first command that fails, and that command's own output, just above, says what went wrong.
Find the real cause
- Open the failed step and scroll up from the message to the first
error,FAILor stack trace. - Look at which command ran last: with
bash -e, nothing after it was executed. - If the log is not enough, re-run the job with Re-run jobs → Enable debug logging.
Common case: grep with no match
grep exits 1 when it finds nothing, and bash -e turns that into a failed step:
- run: grep -q "TODO" src/*.js && echo "found TODOs" # fails the step when there are none
- run: grep -q "TODO" src/*.js && echo "found TODOs" || true # never failsAllow a step to fail
- name: Optional lint
run: npm run lint
continue-on-error: trueThe job continues and stays green; the step is shown as failed but does not fail the job. Use if: failure() on a later step to react only when something earlier failed.
Sources
- docs.github.comdocs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
- docs.github.comdocs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging
- docs.github.comdocs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error
Related pages
flags · github-actionsGitHub Actions shell: bash vs the default: -e and pipefailWithout shell:, Linux run steps use bash -e and miss failures inside pipelines. shell: bash runs bash --noprofile --norc -eo pipefail and catches them.codes · github-actionsGitHub Actions conclusions: success, failure, cancelled, skippedHow exit codes become GitHub Actions results: exit 0 passes, any other code fails the step, and jobs end as success, failure, cancelled, skipped or timed out.codes · bashBash exit codes: 0, 1, 2, 126, 127, 128+n and 255What bash exit codes mean: 0 success, 1 general error, 2 misuse of builtins, 126 not executable, 127 not found, 128+n killed by signal n, and how to read $?.