Closed sebdanielsson closed 1 year ago
The workflow supports an args
parameter of arguments to pass to tailscale up
, which could be:
- name: Tailscale
uses: tailscale/github-action@v1
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
args: --ssh
Oh! I was looking for something like that but clearly I didn't look close enough. Thank you😃
Hmm weird. Just tested running with args and got the following error:
Warning: Unexpected input(s) 'args', valid inputs are ['authkey', 'version']
Here's my step:
- name: 'Tailscale'
id: tailscale
uses: tailscale/github-action@v1
with:
version: latest
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
args: --ssh
If you are pulling in tailscale/github-action@v1
, that is a version from some time ago and pre-dates the args support. You might pull in tailscale/github-action@e870a1112fcc1faeeeeea3c1b0ce544e5ad01844
instead, the current HEAD
, or leave it unspecified if you always want whatever is current.
That did the trick. Thanks!
I would love to using Tailscale SSH with this action. Would remove the need for a couple of environment variables.