diff --git a/internal/cmd/profile/login_command.go b/internal/cmd/profile/login_command.go index 9146f84..12c9b26 100644 --- a/internal/cmd/profile/login_command.go +++ b/internal/cmd/profile/login_command.go @@ -142,7 +142,7 @@ func loginUsingAPIKey(reader *bufio.Reader, creds *session.StoredCredentials) er creds.KeyID = strings.TrimSpace(keyID) fmt.Print("Enter API key secret: ") - keySecret, err := term.ReadPassword(syscall.Stdin) + keySecret, err := term.ReadPassword(int(syscall.Stdin)) //nolint: unconvert if err != nil { return err } @@ -156,7 +156,7 @@ func loginUsingAPIKey(reader *bufio.Reader, creds *session.StoredCredentials) er func loginUsingGitHubAccessToken(creds *session.StoredCredentials) error { fmt.Print("Enter GitHub access token: ") - accessToken, err := term.ReadPassword(syscall.Stdin) + accessToken, err := term.ReadPassword(int(syscall.Stdin)) //nolint: unconvert if err != nil { return err }