tailscale / github-action

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

preserve environment variables when calling sudo #66

Closed willnorris closed 1 year ago

willnorris commented 1 year ago

This allows configuring the various aspects of tailscale that use environment variables (such as as the experiment flag required for OAuth authkeys, amongst others).

willnorris commented 1 year ago

~The sudoers man page says that wildcards can be used for env_keep command in /etc/sudoers. I'm testing to see if that applies to -E as well, in which case we could tighten this up to -E "TS_*"~

Never mind, that doesn't work.