You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd
Will Norris 13f8a669d5 cmd/gitops-pusher: fix logic for checking credentials
gitops-pusher supports authenticating with an API key or OAuth
credentials (added in #7393). You shouldn't ever use both of those
together, so we error if both are set.

In tailscale/gitops-acl-action#24, OAuth support is being added to the
GitHub action. In that environment, both the TS_API_KEY and OAuth
variables will be set, even if they are empty values.  This causes an
error in gitops-pusher which expects only one to be set.

Update gitops-pusher to check that only one set of environment variables
are non-empty, rather than just checking if they are set.

Updates #7393

Signed-off-by: Will Norris <will@tailscale.com>
4 months ago
..
addlicense all: update tools that manage copyright headers 1 year ago
build-webclient client/web: precompress assets 5 months ago
cloner cmd/cloner: fix typo in test type's name 8 months ago
connector-gen cmd/connector-gen: add helper tool for wide app connector configurations 5 months ago
containerboot cmd/containerboot: add EXPERIMENTAL_TS_CONFIGFILE_PATH env var to allow passing tailscaled config in a file (#10759) 4 months ago
derper go.mod: bump most deps for start of cycle 4 months ago
derpprobe prober: migrate to Prometheus metric library 1 year ago
dist cmd/dist,release/dist: add distsign signing hooks (#9070) 9 months ago
get-authkey all: use cmpx.Or where it made sense 11 months ago
gitops-pusher cmd/gitops-pusher: fix logic for checking credentials 4 months ago
hello all: update copyright and license headers 1 year ago
k8s-operator cmd/k8s-operator: don't proceed with Ingress that has no valid backends (#10919) 4 months ago
mkmanifest cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 1 year ago
mkpkg go.mod: upgrade nfpm to v2 (#8786) 10 months ago
mkversion version/mkversion: open-source version generation logic 1 year ago
nardump all: update copyright and license headers 1 year ago
netlogfmt util/cmpx: remove code that's in the stdlib now 5 months ago
nginx-auth tailcfg,all: add and use Node.IsTagged() 1 year ago
pgproxy various: add golangci-lint, fix issues (#7905) 1 year ago
printdep cmd/printdep: print correct toolchain URL 1 year ago
proxy-to-grafana tailcfg,all: add and use Node.IsTagged() 1 year ago
sniproxy appc,cmd/sniproxy,ipn/ipnlocal: split sniproxy configuration code out of appc 7 months ago
speedtest all: update copyright and license headers 1 year ago
ssh-auth-none-demo all: replace deprecated ioutil references 9 months ago
stunc all: update copyright and license headers 1 year ago
stund go.mod: bump most deps for start of cycle 4 months ago
sync-containers all: adjust some build tags for plan9 9 months ago
tailscale cmd/tailscale/cli: run Watch with NotifyNoPrivateKeys (#10950) 4 months ago
tailscaled go.mod,wgengine/netstack: bump gvisor 4 months ago
testcontrol all: update copyright and license headers 1 year ago
testwrapper all: cleanup unused code, part 2 (#10670) 5 months ago
tsconnect all: cleanup unused code, part 2 (#10670) 5 months ago
tsidp cmd/tsidp: add start of OIDC Tailscale IdP 6 months ago
tsshd all: update copyright and license headers 1 year ago
viewer cmd/cloner: add regression test for slice nil/empty semantics 8 months ago