Lesstep
GitHub Actions · Checked October 31, 2026

GitHub Actions: re-running jobs with debug logging

A failed run can be re-run whole, only its failed jobs, or one job. Each re-run can also turn on debug logging, just for that attempt, without changing the repository's settings. For every run, set ACTIONS_STEP_DEBUG or ACTIONS_RUNNER_DEBUG instead. From GitHub's documentation on re-running workflows and jobs and debug logging.

Three ways to re-run

On GitHub, open the run. At the top right, Re-run jobs offers Re-run failed jobs and Re-run all jobs; next to a job in the left sidebar, the re-run icon re-runs that job. Tick Enable debug logging in the dialog, then Re-run jobs.

gh run rerun RUN_ID --failed --debug
gh run rerun RUN_ID --debug
gh run rerun --job JOB_ID --debug

What debug logging adds

The box turns on both kinds for the re-run. Anyone who can run the workflow can use it.

Debug logging for every run

Set a repository secret or variable (Settings > Secrets and variables > Actions):

With the REST API

curl -X POST -H "Authorization: Bearer <token>" \
  https://api.github.com/repos/OWNER/REPO/actions/runs/RUN_ID/rerun-failed-jobs \
  -d '{"enable_debug_logging": true}'

Re-run jobs from IntelliJ IDEA

Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs, steps and logs. Re-run Failed Jobs, Re-run All Jobs and, on a job, Re-run Job send the same requests, with a with debug logging box, so a failing job can be re-run with its debug messages without opening GitHub, and its new log read in the IDE. Reading is free; re-running, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).

GitHub and GitHub Actions are trademarks of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc. or JetBrains.

More: "Unable to retry this workflow run because it was created over a month ago" · "HTTP 410: Server Error" for an old run's logs · Cancelling a run that will not stop · GitHub Actions plugins for IntelliJ IDEA compared · 日本語