Commit graph

12 commits

Author SHA1 Message Date
Mario Minardi
c66619accf
.github/workflows: add tests for new / granular minimal OAuth scopes
Change the default matrix test to use an OAuth client which has the new
set of more granular minimal OAuth scopes necessary to successfully use
the action.

Add a new job that uses the previous OAuth client to ensure that we
don't break legacy clients.

Fixes https://github.com/tailscale/github-action/issues/184

Signed-off-by: Mario Minardi <mario@tailscale.com>
2025-07-04 12:27:49 -06:00
Mario Minardi
8fe6f78f60
{.github/workflows,action.yml}: run windows in unattended mode
Add the `--unattended` flag when running the action on windows-based
machines. This allows the action to properly connect on windows machines
that do not have full GUI support under the hood (e.g., for the current
batch of `windows-11-arm` runners).

Fixes https://github.com/tailscale/github-action/issues/180

Signed-off-by: Mario Minardi <mario@tailscale.com>
2025-06-23 10:07:15 -06:00
Mario Minardi
5d536117a7 action.yml: properly remove temporary files after downloading
Remove `.tgz` and `.msi` files after they have been downloaded. This was
the behaviour of the action previous to `v3.2.0`, but our logic for
caching removed the deletion of these files.

Can look at downloading these to temp folders to avoid the more complex
logic here as a follow up, but this should unblock / fix the immediate
regression.

Also, on Windows, write `tailscale.log` to the temp dir.

Also, on MacOS, delete the `tailscale` directory that was used to build the `tailscale(d)` commands.

Updates: #170

Co-authored-by: Mario Minardi <mario@tailscale.com>
Signed-off-by: Percy Wegmann <percy@tailscale.com>
2025-04-09 16:17:15 -05:00
Mario Minardi
a31fee8af4
.github/workflows: pin GitHub action versions
Pin versions of GitHub actions that are used in our workflows.

Updates #cleanup

Signed-off-by: Mario Minardi <mario@tailscale.com>
2025-04-02 13:36:29 -06:00
Brian Palmer
b09fabcbed CI: fix the connection check
Checking for hello is not the best way to verify that Tailscale is connected, and it recently broke because we stopped giving ephemeral nodes access to hello.

Instead, check for connection by parsing the status output as recommended in our KB article https://tailscale.com/kb/1073/hello
2025-04-01 09:08:04 -06:00
Mario Minardi
f0c3dac2f5
{action.yml,.github}: add support for macOS
Add support for running the action on macOS-based GitHub runners.

Updates https://github.com/tailscale/github-action/issues/157

Co-authored-by: Derek Gurchik <602444+gurchik@users.noreply.github.com>
2025-03-05 12:35:38 -07:00
Mario Minardi
5dddea1dff
{action.yml,.github}: add support for windows
Add support for running the action on windows-based GitHub runners.

Updates https://github.com/tailscale/github-action/issues/157
2025-03-03 12:37:06 -07:00
Percy Wegmann
eac66e8ca4 .github/workflows: use default Tailscale version in CI
This makes sure that we test with the default version as specified in action.yml

Updates #cleanup

Signed-off-by: Percy Wegmann <percy@tailscale.com>
2024-08-14 20:10:14 -05:00
Andrew Lytvynov
2075411ebb
Fail if curl gets a non-200 response code (#119)
If package or SHA download from pkgs.tailscale.com fails with a non-200
repsonse code, make the whole action fail. This catches things like
incorrect versions.

Updates #118
2024-04-23 18:20:03 -06:00
Denton Gentry
721822aa67
workflow: allow manual testing (#91)
We periodically have reports of failures in the GitHub Action
where there has been no recent change in Tailscale infrastructure
and no indication of a problem in metrics or monitoring.

Right now we have to generate a pull request to get this test
workflow to run. Allow it to be run manually whenever desired.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-10-04 13:31:57 -07:00
Denton Gentry
d7bb41ca42
action.yml: support OAuth clients in addition to authkeys (#71)
Fixes https://github.com/tailscale/github-action/issues/59

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-06-28 16:35:31 -07:00
Denton Gentry
78c62c55c7 Adding Continuous integration test.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-08-05 18:00:33 -07:00