You can use WeTTY to create a web based interactive terminal for a shell running in the context of your GitHub Actions workflow, and combine that with Microsoft dev tunnels to open a secure and authenticated connection into that shell. The default dev tunnels security model secures access by requiring authentication with the same account used to host the tunnel (in the below example a GitHub account).
You can use this to investigate issues with your workflow scripts in the context of the actual runner. Here is an example of htop
running on a GitHub hosted agent.
The below workflow step:
- Installs Dev tunnels and WeTTY (due to a know issue we install version 2.5).
- Starts WeTTY to host a bash shell over a web interface.
- Auth