René's URL Explorer Experiment


Title: Reject terminal stdin for `gh auth login --with-token` by BagToad · Pull Request #14679 · cli/cli · GitHub

Open Graph Title: Reject terminal stdin for `gh auth login --with-token` by BagToad · Pull Request #14679 · cli/cli

X Title: Reject terminal stdin for `gh auth login --with-token` by BagToad · Pull Request #14679 · cli/cli

Description: GitHub’s official command line tool. Contribute to cli/cli development by creating an account on GitHub.

Open Graph Description: Fixes #9789 Description gh auth login --with-token reads a token from standard input until the input ends. A file or a pipe ends on its own, but a terminal does not. The login command never checke...

X Description: Fixes #9789 Description gh auth login --with-token reads a token from standard input until the input ends. A file or a pipe ends on its own, but a terminal does not. The login command never checke...

Opengraph URL: https://github.com/cli/cli/pull/14679

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:943d1f11-5320-ecd6-b3a6-e45a068833d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F20:7A60E:18CD75F:1FD51A8:6B0138E4
html-safe-nonce260b9f47a85b4a9c58066ff029541c49b24357c73291168a02624bdb95874f7c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjIwOjdBNjBFOjE4Q0Q3NUY6MUZENTFBODo2QjAxMzhFNCIsInZpc2l0b3JfaWQiOiI2ODQ2Mjg3NjI1MjEzNTI0MTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace0bf49830212a029d16b6955b93d00c619e7f45b42de2f38a2f96c06c088c0c2
hovercard-subject-tagpull_request:4853228991
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/cli/cli/14679/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cd17c20bd2bf1f11a8d5301d0c542bfae9ac1f922923d2c0d94acf4cdb6c1300/cli/cli/pull/14679
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd17c20bd2bf1f11a8d5301d0c542bfae9ac1f922923d2c0d94acf4cdb6c1300/cli/cli/pull/14679
og:image:altFixes #9789 Description gh auth login --with-token reads a token from standard input until the input ends. A file or a pipe ends on its own, but a terminal does not. The login command never checke...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBagToad
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/cli/cli git https://github.com/cli/cli.git
octolytics-dimension-user_id59704711
octolytics-dimension-user_logincli
octolytics-dimension-repository_id212613049
octolytics-dimension-repository_nwocli/cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id212613049
octolytics-dimension-repository_network_root_nwocli/cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/cli/cli/pull/14679#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcli%2Fcli%2Fpull%2F14679
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcli%2Fcli%2Fpull%2F14679
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=cli%2Fcli
Reloadhttps://github.com/cli/cli/pull/14679
Reloadhttps://github.com/cli/cli/pull/14679
Reloadhttps://github.com/cli/cli/pull/14679
clihttps://github.com/cli
clihttps://github.com/cli/cli
Codehttps://github.com/cli/cli
Issues1.1k (1.1k)https://github.com/cli/cli/issues
Pull requests59 (59)https://github.com/cli/cli/pulls
Discussionshttps://github.com/cli/cli/discussions
Actionshttps://github.com/cli/cli/actions
Projectshttps://github.com/cli/cli/projects
Security and quality17 (17)https://github.com/cli/cli/security
Insightshttps://github.com/cli/cli/insights
https://github.com/cli/cli
BagToadhttps://github.com/BagToad
trunkhttps://github.com/cli/cli/tree/trunk
bagtoad/auth-login-with-token-tty-errorhttps://github.com/cli/cli/tree/bagtoad/auth-login-with-token-tty-error
Conversationhttps://github.com/cli/cli/pull/14679
Commits1 (1)https://github.com/cli/cli/pull/14679/commits
Checkshttps://github.com/cli/cli/pull/14679/checks
Files changedhttps://github.com/cli/cli/pull/14679/files
Reject terminal stdin for gh auth login --with-tokenhttps://github.com/cli/cli/pull/14679#top
BagToadhttps://github.com/BagToad
trunkhttps://github.com/cli/cli/tree/trunk
bagtoad/auth-login-with-token-tty-errorhttps://github.com/cli/cli/tree/bagtoad/auth-login-with-token-tty-error
https://github.com/BagToad
BagToadhttps://github.com/BagToad
Oct 14, 2026https://github.com/cli/cli/pull/14679#issue-5842268897
#9789https://github.com/cli/cli/issues/9789
login commandhttps://github.com/cli/cli/blob/d6b82b12e67d108b7c82d76d943a3a47814acbc1/pkg/cmd/auth/login/login.go#L118-L124
acceptance criteriahttps://github.com/cli/cli/issues/9789#issuecomment-2426092653
new checkhttps://github.com/cli/cli/blob/2de1e0886a0cf896165db70e7729b28bd5b0febc/pkg/cmd/auth/login/login.go#L118-L123
d6b82b1https://github.com/cli/cli/commit/d6b82b12e67d108b7c82d76d943a3a47814acbc1
2de1e08https://github.com/cli/cli/commit/2de1e0886a0cf896165db70e7729b28bd5b0febc
https://private-user-images.githubusercontent.com/47394200/672994887-36b555b6-b4ac-46c3-8cb8-56fb574b7c89.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDI1MTIsIm5iZiI6MTc5NTI0MjIxMiwicGF0aCI6Ii80NzM5NDIwMC82NzI5OTQ4ODctMzZiNTU1YjYtYjRhYy00NmMzLThjYjgtNTZmYjU3NGI3Yzg5LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA2MjMzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxM2UxNzhhNjdmYTE3NmEyOTgzNGY0ZTU1OGM2ODEyYjA3YzM3MzU2NDlhYmEzMjA4ZmI1YWMwZDcwYzM3YjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmdpZiJ9.lStK13gcD3oMD1QLQjVfINMrE1cEzKVBbHm7WL4J5P0
https://private-user-images.githubusercontent.com/47394200/672994898-12b69e03-637d-4bf0-a238-8f9cabbf6d44.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDI1MTIsIm5iZiI6MTc5NTI0MjIxMiwicGF0aCI6Ii80NzM5NDIwMC82NzI5OTQ4OTgtMTJiNjllMDMtNjM3ZC00YmYwLWEyMzgtOGY5Y2FiYmY2ZDQ0LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA2MjMzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0NGJiZjU1ZmRlYTVjZTRmM2U0MTIxZjZjYThjYTk1N2Y5NWU3ZWJiOWE5Yjc4ODY1NmQ5OTYwNjFhNWU1NDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmdpZiJ9.HMXRFfZXHUKX3B6wy3dHpS7aZBB4dcL7jraIdZwV31k
issue threadhttps://github.com/cli/cli/issues/9789#issuecomment-5993632414
gh gist createhttps://github.com/cli/cli/blob/d6b82b12e67d108b7c82d76d943a3a47814acbc1/pkg/cmd/gist/create/create.go#L84-L86
new checkhttps://github.com/cli/cli/blob/2de1e0886a0cf896165db70e7729b28bd5b0febc/pkg/cmd/auth/login/login.go#L118-L123
tty, with-tokenhttps://github.com/cli/cli/blob/2de1e0886a0cf896165db70e7729b28bd5b0febc/pkg/cmd/auth/login/login_test.go#L66-L72
tty, with-token, hostnamehttps://github.com/cli/cli/blob/2de1e0886a0cf896165db70e7729b28bd5b0febc/pkg/cmd/auth/login/login_test.go#L100-L106
gh auth login --with-token: provide clear, non-echoing token input when stdin is a terminal #14597https://github.com/cli/cli/issues/14597
gh auth login --with-token hangs #9789https://github.com/cli/cli/issues/9789
@BagToadhttps://github.com/BagToad
Please reload this pagehttps://github.com/cli/cli/pull/14679
https://github.com/BagToad
https://github.com/apps/github-copilot-cli
Reject terminal stdin for auth login --with-tokenhttps://github.com/cli/cli/pull/14679/commits/2de1e0886a0cf896165db70e7729b28bd5b0febc
2de1e08https://github.com/cli/cli/pull/14679/commits/2de1e0886a0cf896165db70e7729b28bd5b0febc
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
October 14, 2026 05:05https://github.com/cli/cli/pull/14679#event-33195954970
started reviewinghttps://github.com/cli/cli/sessions/c0e55bd7-bbd8-4c8c-b9d3-d87f88844028
BagToadhttps://github.com/BagToad
October 14, 2026 05:05https://github.com/cli/cli/pull/14679#event-33195981995
View session https://github.com/cli/cli/sessions/c0e55bd7-bbd8-4c8c-b9d3-d87f88844028
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Oct 14, 2026 https://github.com/cli/cli/pull/14679#pullrequestreview-5513319160
View reviewed changes https://github.com/cli/cli/pull/14679/files/2de1e0886a0cf896165db70e7729b28bd5b0febc
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/cli/cli/pull/14679#pullrequestreview-5513319160
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Add coverage for TTY stdin with piped stdouthttps://github.com/cli/cli/pull/14679#discussion_r4266994277
Learn more in the docs.https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills
Please reload this pagehttps://github.com/cli/cli/pull/14679
pkg/cmd/auth/login/login_test.gohttps://github.com/cli/cli/pull/14679/files/2de1e0886a0cf896165db70e7729b28bd5b0febc#diff-43bcabac1a5562344a5cce782097c1d258239103566a8509fa84ba086beccf50
https://github.com/twilwa
twilwahttps://github.com/twilwa
Oct 14, 2026 https://github.com/cli/cli/pull/14679#ref-pullrequest-5838426517
fix(bin): route away-mode GitHub merges through the review ledger and stop phantom required-check holds twilwa/firstmate#36 https://github.com/twilwa/firstmate/pull/36
https://github.com/jh3779
jh3779https://github.com/jh3779
Oct 21, 2026 https://github.com/cli/cli/pull/14679#ref-pullrequest-5955680654
chore: merge-gate가 협업자가 쓴 리뷰·코멘트만 세도록 제한한다(공개 전환 대비, 이슈 #177) jh3779/recall-casebook#182 https://github.com/jh3779/recall-casebook/pull/182
https://github.com/draarivpatel-ui
draarivpatel-uihttps://github.com/draarivpatel-ui
Nov 10, 2026 https://github.com/cli/cli/pull/14679#ref-pullrequest-6300185629
Reject terminal stdin for gh auth login --with-token #15006 https://github.com/cli/cli/pull/15006
https://github.co/hiddenchars
https://github.com/cli/cli/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcli%2Fcli%2Fpull%2F14679
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/cli/cli/pull/14679/files/2de1e0886a0cf896165db70e7729b28bd5b0febc
Please reload this pagehttps://github.com/cli/cli/pull/14679
gh auth login --with-token hangs https://github.com/cli/cli/issues/9789
Please reload this pagehttps://github.com/cli/cli/pull/14679
https://github.com/BagToad
https://github.com/apps/copilot-pull-request-reviewer
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.