No description
Find a file
Will Norris 65cdd9a05d add timeout on steps with network I/O
Set a reasonable timeout to prevent jobs from hanging for hours (#50).
5 minutes is way longer than should ever be necessary, but accounts for
intermittent networking issues on either the actions runner or the
Tailscale package or control server.  Users can always set a shorter
timeout on their own action step.

Fixes #50

Signed-off-by: Will Norris <will@tailscale.com>
2023-06-29 11:31:56 -07:00
.github/workflows action.yml: support OAuth clients in addition to authkeys (#71) 2023-06-28 16:35:31 -07:00
action.yml add timeout on steps with network I/O 2023-06-29 11:31:56 -07:00
LICENSE create deployable GitHub action 2021-04-23 18:20:24 -04:00
README.md action.yml: support OAuth clients in addition to authkeys (#71) 2023-06-28 16:35:31 -07:00

Tailscale GitHub Action

This GitHub Action connects to your Tailscale network by adding a step to your workflow.

  - name: Tailscale
    uses: tailscale/github-action@v2
    with:
      oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
      oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
      tags: tag:ci

Subsequent steps in the Action can then access nodes in your Tailnet.

oauth-client-id and oauth-secret are an OAuth client for the tailnet to be accessed. We recommend storing these as GitHub Encrypted Secrets.

tags is a comma-separated list of one or more ACL Tags for the node. At least one tag is required: an OAuth client is not associated with any of the Users on the tailnet, it has to Tag its nodes.

Nodes created by this Action are marked as Ephemeral to be automatically removed by the coordination server a short time after they finish their run. The nodes are also marked Preapproved on tailnets which use Device Approval