Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 4

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?

3 Replies
Highlighted
GitHub Partner
Message 2 of 4

Re: Debugging github actions locally or ssh to workspace

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.

Highlighted
Pilot Lvl 1
Message 3 of 4

Re: Debugging github actions locally or ssh to workspace

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

Highlighted
Copilot Lvl 3
Message 4 of 4

Re: Debugging github actions locally or ssh to workspace

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