This PR supports configuring GH env vars to get a user's public keys including GH_TOKEN/GITHUB_TOKEN, GH_ENTERPRISE_TOKEN/GITHUB_ENTERPRISE_TOKEN & GH_HOST. If the gh CLI is set up, upterm automatically adopts the GH token/host from the CLI with a fallback to public GH API calls.
Besides, this PR also enables displaying authorized keys with upterm session current, which makes it explicit that what keys are allowed to connect:
This PR supports configuring GH env vars to get a user's public keys including
GH_TOKEN/GITHUB_TOKEN
,GH_ENTERPRISE_TOKEN/GITHUB_ENTERPRISE_TOKEN
&GH_HOST
. If thegh
CLI is set up,upterm
automatically adopts the GH token/host from the CLI with a fallback to public GH API calls.Besides, this PR also enables displaying authorized keys with
upterm session current
, which makes it explicit that what keys are allowed to connect:This closes https://github.com/owenthereal/upterm/pull/191.