Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub authorization keeps popping up #219318

Closed
Dunridge77 opened this issue Jul 1, 2024 · 8 comments
Closed

GitHub authorization keeps popping up #219318

Dunridge77 opened this issue Jul 1, 2024 · 8 comments
Assignees
Labels
github Github extension info-needed Issue requires more information from poster

Comments

@Dunridge77
Copy link

Type: Bug

I'm seeing an issue where autorization with GitHub popup keeps appearing and asking me to authorize. After I authorize and continue with my work this window appears again. I wrote a bash scripts to switch between github accounts (work and personal) and I think this switching causes the problem. How can I fix this?

VS Code version: Code 1.90.2 (5437499, 2024-06-18T22:34:26.404Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.81GB (4.64GB free)
Process Argv --crash-reporter-id 16e0f012-2b4f-4b64-a48c-ea5a43a7c32c
Screen Reader no
VM 0%
Extensions (30)
Extension Author (truncated) Version
ng-template Ang 18.0.0
atlascode atl 3.0.10
vscode-django bat 1.15.0
simple-react-snippets bur 1.2.8
codeium Cod 1.8.73
docs-markdown doc 1.0.8
docs-preview doc 1.0.7
gitlens eam 15.1.0
vscode-ts-auto-return-type ebr 1.1.0
prettier-vscode esb 10.4.0
copilot-chat Git 0.16.1
svg joc 1.5.4
vsc-python-indent Kev 1.18.0
git-graph mhu 1.30.0
graphql mqu 0.1.2
conslog mrc 1.6.6
debugpy ms- 2024.6.0
python ms- 2024.8.1
vscode-pylance ms- 2024.6.1
vsliveshare ms- 1.0.5932
angular-console nrw 18.24.1
prisma Pri 5.16.1
reactree Rea 1.0.8
vscode-yaml red 1.15.0
LiveServer rit 5.7.9
git-merger sha 0.4.1
svg-preview Sim 2.8.3
code-logger Siv 0.0.2
quokka-vscode Wal 1.0.646
vscode-nextjs-snippets wil 0.3.0
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31082723

@lszomoru
Copy link
Member

lszomoru commented Jul 1, 2024

/gifPlease

@lszomoru lszomoru added the github Github extension label Jul 1, 2024
@vscodenpa
Copy link

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

@vscodenpa vscodenpa added the info-needed Issue requires more information from poster label Jul 1, 2024
@Dunridge
Copy link

Dunridge commented Jul 5, 2024

@lszomoru

The popup:
image

Bash scripts:
image

The code used to switch between the gh accounts (different account credentials in each script):

git config --global user.name "***" & git config --global user.email "***" & npm config delete registry
cmd /k

My guess that the constant switching between the accounts causes this issue because after I get this popup and authorize with the current GH profile in a browser after about 15 minutes I get this popup again

@lszomoru
Copy link
Member

lszomoru commented Jul 5, 2024

@Dunridge77, thanks for the screenshot. I believe that this auth dialog comes from the GitHub CLI. Do you have the GitHub CLI installed? @TylerLeonhardt, I tend to remember you mentioning that there is a known issue with the GitHub CLI. Do you have any additional information about the issue? Thanks!

@Dunridge
Copy link

Dunridge commented Jul 5, 2024

@lszomoru Yes, I have it installed. I use Git Bash to write git commands when setting up a repo and GH Desktop to commit/push
image

And this popup appears only when I open VS Code

@TylerLeonhardt
Copy link
Member

There's this one... #217667

similar in that it's CLI related. What could be happening here, and this is a guess, VS Code is running certain git commands that shell out to the git credential manager which, in this case, is handled by the gh CLI.

In any case, since this is shown by the CLI, it'd be great if you could get an issue going over here:
https://github.com/cli/cli

VS Code isn't really to blame here, we just execute CLI commands to provide our git UI.

@Dunridge
Copy link

@TylerLeonhardt thank you, I opened the issue here -- cli/cli#9361 (comment)

@lszomoru
Copy link
Member

Thanks for the update! I will go ahead and close this issue for now.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
github Github extension info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants