GitHub Actions: Error: Process completed with exit code 1.
A run: command returned a non-zero status, so the step (and job) failed — the real cause is printed in the log lines above.
Process completed with exit code 1Error: Process completed with exit code 1.exit code 1 GitHub Actions##[error]Process completed with exit code 1 Meaning
Exit code 1 is generic: test failures, a linter, npm ci, grep finding nothing, or any script error. Scroll up to the first error line of that step, reproduce the command locally with the same versions, and enable debug logging if the output is not enough. Use set -euo pipefail to make failures appear where they happen.
Common causes
- Tests, lint or build failing in the step
- A command in the script exiting 1 (grep without match, diff with changes)
- Missing dependency or wrong version on the runner
set -estopping the script at the first failed command- A secret or environment variable missing, so the tool aborts
⚡ Quick fix
- Read the log above the annotation — the first red line is the cause
- Reproduce locally with the same command and Node/Python version
- Add
set -euo pipefailand echo key variables (not secrets) to locate the failing line
Detailed fix by platform
GitHub Actions
- Re-run with debug logs: re-run job → "Enable debug logging" (or set secret
ACTIONS_STEP_DEBUG=true) actcan run workflows locally for quick iteration
Code examples
Make failures obvious
- name: Test
shell: bash
run: |
set -euo pipefail
npm ci
npm test -- --ciHow to diagnose
- Log — What is the first error line in the step?
- Local — Does the same command fail locally?
- Env — Same tool versions as the runner?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- API rate limit exceeded GitHub Actions: HttpError: API rate limit exceeded for installation ID 123456 / secondary rate limit
- Cache not found / Unable to reserve cache GitHub Actions: Cache not found for input keys: npm-Linux-abc123 / Failed to save: Unable to reserve cache with key, another job may be creating this cache
- couldn't find remote ref (checkout) GitHub Actions: fatal: couldn't find remote ref refs/heads/feature — The process '/usr/bin/git' failed with exit code 1 (actions/checkout)
Most viewed in CI/CD
- This job is stuck because you don't have any active runners GitLab CI: This job is stuck because you don't have any active runners online or available with any of these tags assigned to them
- Resource not accessible by integration GitHub Actions: Error: Resource not accessible by integration (403)
- ComparisonError: manifest generation failed Argo CD: ComparisonError: rpc error: code = Unknown desc = Manifest generation error (cached): kustomize build failed
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Oct 2026