How to Enable Step Debug Logging in GitHub Actions
Setting ACTIONS_STEP_DEBUG to true surfaces the debug() messages that actions emit but the normal log hides.
Add a repository secret or variable named ACTIONS_STEP_DEBUG with value true, then re-run the workflow. The log now includes ##[debug] lines from every action.
Steps
- Open Settings then Secrets and variables then Actions.
- Add a repository (or environment) variable
ACTIONS_STEP_DEBUGset totrue. - Re-run the failed run; the expanded steps now show
##[debug]output.
Set it from the gh CLI
Terminal
gh variable set ACTIONS_STEP_DEBUG --body true
# remove it once you are done to keep logs clean
gh variable delete ACTIONS_STEP_DEBUGGotchas
- A repository variable works, but a secret of the same name also works and is what older docs reference.
- Step debug logging only affects new runs; re-run the workflow after setting it.
- It does not enable runner diagnostic logs; set
ACTIONS_RUNNER_DEBUGfor those.
Related guides
How to Enable Runner Diagnostic Logging in GitHub ActionsCapture low-level runner and worker diagnostic logs in GitHub Actions by setting ACTIONS_RUNNER_DEBUG to true…
How to Re-run a Workflow With Debug Logging in GitHub ActionsRe-run a GitHub Actions run with debug logging enabled directly from the web UI using the Enable debug loggin…