tailscale / gitops-acl-action

GitOps for your Tailscale ACLs
85 stars 25 forks source link

switch to composite build and add api key check #28

Closed willnorris closed 9 months ago

willnorris commented 9 months ago

This prepares for merging #24. Manually tested in a private repo on a test tailnet.

oscar-b commented 8 months ago

@willnorris Hey! This seems to break on our self hosted runners:

Run go install tailscale.com/cmd/gitops-pusher@gitops-1.58.2
  go install tailscale.com/cmd/gitops-pusher@gitops-1.58.2
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    GOBIN: /usr/local/bin/
tailscale.com/cmd/gitops-pusher: go install tailscale.com/cmd/gitops-pusher: copying /tmp/go-build2096326023/b001/exe/a.out: open /usr/local/bin/gitops-pusher: permission denied

Not sure if we should just allow our gh user access to /usr/local/bin? Not sure how this is configured on GitHubs runners.

oscar-b commented 8 months ago

As an alternative solution, I'm running the workflow in a container instead:

container: golang:1.21.6-bookworm