TokenForHost source return value should be a value like GH_TOKEN or GITHUB_TOKEN when the token comes from an environment variable, or a file path (e.g. /path/to/hosts.yml) when the value comes from a file. However, a static string oauth_token is returned instead of a file name:
Since oauth_token source is not useful to find out where a value comes from, printing the file name would be better.
Ref. #44
TokenForHost
sourcereturn value should be a value like GH_TOKEN or GITHUB_TOKEN when the token comes from an environment variable, or a file path (e.g./path/to/hosts.yml) when the value comes from a file. However, a static stringoauth_tokenis returned instead of a file name:go-gh/pkg/auth/auth.go
Line 64 in da64a13
Since
oauth_tokensource is not useful to find out where a value comes from, printing the file name would be better.Ref. #44