tailscale / github-action

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

Cannot run action on Act #120

Open PierreSnell opened 2 months ago

PierreSnell commented 2 months ago

I would like to use act: https://github.com/nektos/act to test my actions.

However, at the tailscale step I got : failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?)

It should no matter but on the machine running act I also have tailscale configured and running.

Here is the github flow :

name: Pull request
on:
    pull_request:
      types: [opened, synchronize, reopened, ready_for_review]
      branches:
        - main

jobs:
  preview-deployment:
    if: github.event.pull_request.draft == false
    name: preview-deployment
    runs-on: ubuntu-latest
    steps:
    - name: Checkout 
      uses: actions/checkout@v4

    - name: Setup Node
      uses: actions/setup-node@v4
      with:
        node-version-file: package.json

    - name: Install Dependencies
      run: npm install

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

    - uses: pulumi/actions@v5
      with:
        command: preview
        stack-name: dev
      env:
        PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

Thanks in advance ! :) Have a great day