Debugging github actions locally or ssh to workspace

Hi,

first of all, I really like new actions.
I would love to be able to debug them locally. Is it possible? Are steps available in some repo as well as ubuntu images?

9 Likes

Hi,

Many thanks for your feedback!  

Github Actions provide CI/CD feature based on cloud, it’s not support to debug them locally.

Here is the official doc about debug logs, please kindly check.

As an alternative, you can get the repo on your client and push the change back to github, trigger the workflow, and check the web debug logs then.

1 Like

Could you please tell us on how to set the secret  ACTIONS_RUNNER_DEBUG in the workflow for debugging ?. 

Another option is the great debugging with tmate action, which allows you to login to the runner directly:

https://github.com/marketplace/actions/debugging-with-tmate

10 Likes

@danyeaw wrote:

Another option is the great debugging with tmate action, which allows you to login to the runner directly:

https://github.com/marketplace/actions/debugging-with-tmate

Any suggestions for a windows based shell?

4 Likes

@maximveksler

Any suggestions for a windows based shell?

You can try to use a workaround Debugging GitHub Actions with SSH