Skip to content

Here you can find a GitHub Action that allows you to connect to a GitHub Actions runner via SSH for interactive debugging using ngrok.

Notifications You must be signed in to change notification settings

8NEZNhg7U73i/debug-via-ssh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

debug-via-ssh

This GitHub Action allows you to connect to a GitHub Actions runner via SSH for interactive debugging using zerotier.

Features

It works with Ubuntu, macOS and Windows runners.

Quick usage

- name: Start SSH session
  uses: example/debug-via-ssh@main
  with:
        SSH_PASS: ${{ secrets.SSH_PASS }}
        ZEROTIER_NETWORK_ID: ${{ secrets.ZEROTIER_NETWORK_ID }}
        ZEROTIER_CONFIG: ${{ secrets.ZEROTIER_CONFIG }}
        ZEROTIER_SECRET: ${{ secrets.ZEROTIER_SECRET }}
        ZEROTIER_PUBLIC: ${{ secrets.ZEROTIER_PUBLIC }}
        ZEROTIER_AUTHTOKEN: ${{ secrets.ZEROTIER_AUTHTOKEN }}
        #ZEROTIER_TIMEOUT: ${{ secrets.ZEROTIER_TIMEOUT }}

Settings

Mandatory

Optional

  • ZEROTIER_CONFIG - ZEROTIER Config
  • ZEROTIER_SECRET - ZEROTIER identity.secret
  • ZEROTIER_PUBLIC - ZEROTIER identity.public
  • ZEROTIER_AUTHTOKEN - ZEROTIER authtoken.secret
  • ZEROTIER_TIMEOUT - Timeout in seconds for ZEROTIER session

FAQ

How to get zerotier network id?

  1. Go to https://www.zerotier.com/
  2. Hit Login in or Sign up in the top right corner
  3. Login in or Sign up via GitHub/Google/Microsoft or a standalone account
  4. From the given dashboard, you can create a network and get your zerotier network id
  5. If you want to use on lots of runners, you should change the Access Control to the public to avoid allow*
  6. If you want to set static ip, you can set zerotier public key and private key generated by zerotier-idtool to leep zerotier node id
  7. From the given dashboard, you can now get your zerotier auth token

About

Here you can find a GitHub Action that allows you to connect to a GitHub Actions runner via SSH for interactive debugging using ngrok.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%