Skip to content
Latchkey

How to Debug a Failing GitHub Actions Workflow

When a workflow fails for no obvious reason, these techniques surface the real cause fast.

Most CI debugging is about getting more signal: more logs, an interactive shell, or a local reproduction.

Turn on debug logs

Set repo secrets ACTIONS_STEP_DEBUG: true and ACTIONS_RUNNER_DEBUG: true, then re-run to get verbose logs.

Get an interactive shell

Add a mxschmitt/action-tmate step to open an SSH session into the runner and poke around live.

Read above the failure

The exit line (e.g. ELIFECYCLE, exit 137) is a wrapper - the real error is in the lines just above it.

Reproduce locally

Tools like act run workflows locally for fast iteration without pushing commits.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →