|
| 1 | +# Copyright (c) Lee Briggs, Tailscale Inc, & Contributors |
| 2 | +# SPDX-License-Identifier: BSD-3-Clause |
| 3 | + |
| 4 | +name: 'Connect Tailscale' |
| 5 | +description: 'Connect your GitHub Action workflow to Tailscale' |
| 6 | +branding: |
| 7 | + icon: 'arrow-right-circle' |
| 8 | + color: 'gray-dark' |
| 9 | + |
| 10 | +inputs: |
| 11 | + authkey: |
| 12 | + description: 'Your Tailscale authentication key, from the admin panel.' |
| 13 | + required: false |
| 14 | + deprecationMessage: 'An OAuth API client https://tailscale.com/s/oauth-clients is recommended instead of an authkey' |
| 15 | + oauth-client-id: |
| 16 | + description: 'Your Tailscale OAuth or OIDC Federated Identity clientID.' |
| 17 | + required: false |
| 18 | + audience: |
| 19 | + description: 'Your Tailscale OIDC Federated Identity Audience' |
| 20 | + required: false |
| 21 | + oauth-secret: |
| 22 | + description: 'Your Tailscale OAuth Client Secret.' |
| 23 | + required: false |
| 24 | + tags: |
| 25 | + description: 'Comma separated list of Tags to be applied to nodes. When using an OAuth client, the OAuth client must have the `auth_keys` scope and alls tags on the OAuth client must match all tags specified here.' |
| 26 | + required: false |
| 27 | + version: |
| 28 | + description: 'Tailscale version to use. Specify `latest` to use the latest stable version, and `unstable` to use the latest development version.' |
| 29 | + required: true |
| 30 | + default: '1.90.4' |
| 31 | + args: |
| 32 | + description: 'Optional additional arguments to `tailscale up`.' |
| 33 | + required: false |
| 34 | + default: '' |
| 35 | + tailscaled-args: |
| 36 | + description: 'Optional additional arguments to `tailscaled`.' |
| 37 | + required: false |
| 38 | + default: '' |
| 39 | + hostname: |
| 40 | + description: 'Fixed hostname to use. Must be a valid DNS label (alphanumeric and dashes only, 1-63 characters, cannot start or end with a dash). If not provided, a hostname will be generated based on the runner name.' |
| 41 | + required: false |
| 42 | + default: '' |
| 43 | + timeout: |
| 44 | + description: 'Timeout for `tailscale up`.' |
| 45 | + required: false |
| 46 | + default: '2m' |
| 47 | + retry: |
| 48 | + description: 'Number of retries for `tailscale up`.' |
| 49 | + required: false |
| 50 | + default: '5' |
| 51 | + use-cache: |
| 52 | + description: 'Enable caching of Tailscale binaries to speed up subsequent runs.' |
| 53 | + required: false |
| 54 | + default: 'true' |
| 55 | + statedir: |
| 56 | + description: 'Directory to store Tailscale state. If empty, uses in-memory storage.' |
| 57 | + required: false |
| 58 | + default: '' |
| 59 | + sha256sum: |
| 60 | + description: 'Expected SHA256 checksum of the tarball.' |
| 61 | + required: false |
| 62 | + default: '' |
| 63 | + ping: |
| 64 | + description: 'Comma separated list of hosts (Tailscale IP addresses or machine names if MagicDNS is enabled on the tailnet) to `tailscale ping` for connectivity verification after `tailscale up` completes.' |
| 65 | + required: false |
| 66 | + default: '' |
| 67 | + |
| 68 | +runs: |
| 69 | + using: 'node24' |
| 70 | + main: 'dist/index.js' |
| 71 | + post: 'dist/logout/index.js' |
0 commit comments