Skip to content

Commit 0921311

Browse files
authored
Only search secure storage for auth token (#108)
1 parent 6f61141 commit 0921311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/auth/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func tokenForHost(cfg *config.Config, host string) (string, string) {
8787
}
8888

8989
func tokenFromGh(path string, host string) (string, string) {
90-
cmd := exec.Command(path, "auth", "token", "--hostname", host)
90+
cmd := exec.Command(path, "auth", "token", "--secure-storage", "--hostname", host)
9191
result, err := cmd.Output()
9292
if err != nil {
9393
return "", "gh"

0 commit comments

Comments
 (0)