tailscale / gitops-acl-action

GitOps for your Tailscale ACLs
85 stars 25 forks source link

Action not working in self-hosted configuration. #27

Closed Aficionado45 closed 7 months ago

Aficionado45 commented 1 year ago

When running the action on self-hosted github runner. It shows up the error, policy file not found and upon running it on ubuntu-latest workflow runs successfully.

mcostasperformline commented 8 months ago

It isn't working in self-hosted runner but I don't see the issue as being a missing policy file: it's because the GOBIN is hardcoded: https://github.com/tailscale/gitops-acl-action/blob/v1/action.yml#L42-L43

tailscale.com/cmd/gitops-pusher: go install tailscale.com/cmd/gitops-pusher: copying /tmp/go-build3190208388/b001/exe/a.out: open /usr/local/bin/gitops-pusher: permission denied
Error: Process completed with exit code 1.
willnorris commented 7 months ago

this should now be fixed in #38. If you still run into issues, please let me know. I haven't moved the v1 tag just yet, as we're going to make another small change first, but that will be updated shortly.