Debug GitHub Actions locally.

When a step fails, the job pauses and you get a shell inside the container — same files, same environment. Fix it, retry the step, and keep going. No more commit, push, wait, repeat.

A recorded ghdebug session: a test step has failed and a shell is open inside the job container.
A real session, recorded against the included demo workflow. A test fails, a shell opens in the job container, the bug is fixed, and the step is retried.

How it works

ghdebug is a small wrapper around nektos/act. act runs your workflow in Docker. ghdebug adds the debugging loop.

1

Run the workflow locally

ghdebug run starts your job in a container, with the same steps as GitHub Actions.

2

Pause on failure

When a run: step fails, the job stays up. You land in a shell at that step, with its working directory and environment still intact.

3

Fix, retry, or jump ahead

Edit the files, type rerun, then retry the step. Or fix the code on your machine and continue from step N.

$ pipx install git+https://github.com/oiwdis/ghdebug.git
$ cd your-repo
$ ghdebug run

[ghdebug] step 4 (Test) failed with exit code 1. Job is PAUSED.
(ghdebug step 4) $ echo $BUILD_ID
build-1795736776
(ghdebug step 4) $ exit
[ghdebug] resume how?  [r]etry  [c]ontinue  [f]ail > r
[ghdebug] workflow succeeded

$ ghdebug run --from-step 4

Limitations and FAQ

This is a working prototype. It is useful today, and some cases still fall through.

What do I need to run it?

Docker (running), act 0.2.60 or later, and Python 3.9+. The first run pulls a runner image, about 1.6 GB for ubuntu-latest.

Can every kind of step pause?

Only run: steps pause in place. If a uses: action fails, the job ends as usual. The container is kept, so you can still inspect it with ghdebug shell -j <job>.

Does --from-step replay everything the earlier steps did?

It reuses the container from the last run, so files those steps wrote are still there, and it restores environment variables they exported through $GITHUB_ENV and $GITHUB_PATH. It cannot restore step outputs (steps.x.outputs) or caches and artifacts from the skipped steps. actions/checkout still runs, so your edited code is copied in.

Is this a replacement for GitHub-hosted runners?

No. It is for debugging locally. act is very close to GitHub, but some actions, services, and runner images still behave differently. A green local run is a strong signal, not a guarantee.

Does it work on macOS and Windows?

It has been tested end-to-end on Linux. It should work on macOS with Docker Desktop, Colima, or OrbStack. On Windows, use WSL2. A first-party macOS pass is still on the list.

Is it free?

Yes. The CLI is open source under the MIT license. The source is on GitHub.

Get updates

The CLI is available now. Leave your email if you want to hear about releases and the next features. Optional: tell us the CI pain you want this to kill.

You’re on the list. We’ll email you about releases.