tailscale / gitops-acl-action

GitOps for your Tailscale ACLs
85 stars 25 forks source link

"test" gives 401 #12

Closed victor10x closed 1 year ago

victor10x commented 1 year ago

In the "Test ACL" step, I get:

Run tailscale/gitops-acl-action@v[1](https://github.com/10XDev/tailscale-acls/actions/runs/3477322608/jobs/5813364592#step:6:1)
  with:
    api-key: ***
    tailnet: ***
    action: test
    policy-file: ./policy.hujson
/usr/bin/docker run --name e833f45718f34396331d1d4c6_ed54dc --label [2](https://github.com/10XDev/tailscale-acls/actions/runs/3477322608/jobs/5813364592#step:6:2)90506 --workdir /github/workspace --rm -e "INPUT_API-KEY" -e "INPUT_TAILNET" -e "INPUT_ACTION" -e "INPUT_POLICY-FILE" -e "TS_API_KEY" -e "TS_TAILNET" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/tailscale-acls/tailscale-acls":"/github/workspace" 290506:[3](https://github.com/10XDev/tailscale-acls/actions/runs/3477322608/jobs/5813364592#step:6:3)6[4](https://github.com/10XDev/tailscale-acls/actions/runs/3477322608/jobs/5813364592#step:6:4)7697e833f4[5](https://github.com/10XDev/tailscale-acls/actions/runs/3477322608/jobs/5813364592#step:6:5)718f3439[6](https://github.com/10XDev/tailscale-acls/actions/runs/3477322608/jobs/5813364592#step:6:6)331d1d4c6  "--policy-file=./policy.hujson" "test"
wanted HTTP status code 200 but got 401
victor10x commented 1 year ago

api key was wrong :(