Skip to content

Instantly share code, notes, and snippets.

@Cyberax
Created January 12, 2026 19:14
Show Gist options
  • Select an option

  • Save Cyberax/9edbde51380bf7e1b298245464a24c55 to your computer and use it in GitHub Desktop.

Select an option

Save Cyberax/9edbde51380bf7e1b298245464a24c55 to your computer and use it in GitHub Desktop.
TailSSH
- name: Setup Tailscale for SSH access
uses: tailscale/github-action@f166a64f7bdc3fe0d749e973ef5ed6bd9b47775f
continue-on-error: false
with:
tags: tag:ci
args: '--ssh'
oauth-client-id: "..."
oauth-secret: "...."
# 180 seconds should be enough time for initial connect
- name: Wait for SSH
shell: bash
run: |
while true; do
sleep 180s
# Docker container may not have wtmp, infer activity from ps
pgrep -u root -x login || break
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment