tailscale / github-action

A GitHub Action to connect your workflow to your Tailscale network.
BSD 3-Clause "New" or "Revised" License
532 stars 80 forks source link

Warning: Unexpected input(s) 'args', valid inputs are ['authkey', 'version'] and can't connect to tailscaled #41

Closed HarrisonFretwell closed 2 years ago

HarrisonFretwell commented 2 years ago

Trying to connect Tailscale to an exit node from within GitHub actions, using the latest version. I then get the following warning when I try and do this however:

Warning: Unexpected input(s) 'args', valid inputs are ['authkey', 'version']

As well as this error after Tailscale tries to connect

failed to connect to local tailscaled (which appears to be running). Got error: Get "http://local-tailscaled.sock/localapi/v0/status": dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory

I get this warning and error both for tailscale/github-action@v1 and tailscale/github-action@3381393d3c1da08fbd19be592d7149cd8b9dffa0, looking at the source action file I can't figure out what it is I might be doing wrong, as args seems like an accepted parameter.

The full configuration in my workflow file is as follows:

    - name: Connect to Tailscale and set Exit Node
      # Use latest commit has to be able to set extra args
      uses: tailscale/github-action@3381393d3c1da08fbd19be592d7149cd8b9dffa0
      with:
        authkey: ${{ secrets.TAILSCALE_AUTHKEY }
        args: "--exit-node=100.112.102.60"

The full error is:

Warning: Unexpected input(s) 'args', valid inputs are ['authkey', 'version']
[2](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:2)
Run tailscale/github-action@3381393d3c1da08fbd19be592d7149cd8b9dffa0
[21](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:22)
Run MINOR=$(echo "$VERSION" | awk -F '.' {'print $2'})
[49](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:51)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[50](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:52)
                                 Dload  Upload   Total   Spent    Left  Speed
[51](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:53)
[52](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:54)
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[53](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:55)
  3 14.2M    3  480k    0     0   776k      0  0:00:18 --:--:--  0:00:18  776k
[54](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:56)
100 14.2M  100 14.2M    0     0  14.0M      0  0:00:01  0:00:01 --:--:-- 14.0M
[55](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:57)
Run sudo tailscaled 2>~/tailscaled.log &
[78](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:81)
failed to connect to local tailscaled (which appears to be running). Got error: Get "http://local-tailscaled.sock/localapi/v0/status": dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory
[79](https://github.com/PyroAnalytics/PyroCode/runs/7250548450?check_suite_focus=true#step:8:82)
Success.
DentonGentry commented 2 years ago

The v1 Tag and 3381393d3c1da08fbd19be592d7149cd8b9dffa0 are both substantially before the args input went in. You'd need to use:

DentonGentry commented 2 years ago

Reopen if not resolved.