This GitHub Action connects to your Tailscale network by adding a step to your workflow.
- name: Tailscale
uses: tailscale/github-action@v1
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
Subsequent steps in the Action can then access nodes in your Tailnet.
TAILSCALE_AUTHKEY is an authkey for the Tailnet to be accessed, and needs to be populated in the Secrets for your workflow. Ephemeral authkeys tend to be a good fit for GitHub runners, as they clean up their state automatically shortly after the runner finishes.
This repository is provided and maintained by Tailscale. The CI script in this repository uses an ephemeral authkey generated for the Tailnet owned by TailscaleGitHubActionBot.github and stored as a Secret as described above.