Skip to content

Commit

Permalink
Only search secure storage for auth token (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcoe authored Feb 27, 2023
1 parent 6f61141 commit 0921311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func tokenForHost(cfg *config.Config, host string) (string, string) {
}

func tokenFromGh(path string, host string) (string, string) {
cmd := exec.Command(path, "auth", "token", "--hostname", host)
cmd := exec.Command(path, "auth", "token", "--secure-storage", "--hostname", host)
result, err := cmd.Output()
if err != nil {
return "", "gh"
Expand Down

0 comments on commit 0921311

Please sign in to comment.