This updates the get_github_token fn to discover the authenticated user's auth token via the gh auth token cli command instead of by reading the token from $HOME/.config/gh/hosts.yml which doesn't contain the token in all scenarios.
I assumed wrongly that the config might always be available and opted to read the file directly, as that has a little less overhead. But this seems more bullet/future proof! :partying_face:
This updates the
get_github_token
fn to discover the authenticated user's auth token via thegh auth token
cli command instead of by reading the token from$HOME/.config/gh/hosts.yml
which doesn't contain the token in all scenarios.Fixes #1