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
Can't push changes to Github workflows if VS Code authenticated as OAuth Github app #97396
Comments
Oh that's pretty rough. Maybe let's add a workflow scope to it. @RMacfarlane How easy is it to redefine the scopes for an existing credential, which users might already have cached? |
Unfortunately it's not possible to modify an existing token to add scopes, a new one has to be requested with the additional scopes |
@RMacfarlane What I meant to ask was: users will simply get asked to go through the flow once again if I change the scopes here, right? https://github.com/microsoft/vscode/blob/master/extensions/git/src/github.ts#L23-L23 |
Yep, that's correct! |
Whats the process for registering VSCode as an OAuth app? |
@JacksonKearl This is the automatic git auth in VS Code: if you try to pull/push from a git repo using HTTPS, authentication will happen automatically with the GH auth provider. Steps:
|
Havent been able to repro the initial error in Stable. Steps: In a VM without my git auth already registered:
This is on Windows 10 |
Maybe it's specific to the workflow or to our auth. I also didn't repro before the change. Marking as verified. |
I have the same issue when using Visual Studio CodeSpaces. I've cloned a repo with a workflow file, made a change to the workflow file and now get the error on push that my OAuth App doesn't have the workflow scope. |
Issue Type: Bug
.github/workflows/<any_file>
Error will appear:
VS Code version: Code 1.45.0 (d69a79b, 2020-05-07T16:18:48.860Z)
OS version: Windows_NT x64 10.0.18363
Remote OS version: Linux x64 4.4.0-18362-Microsoft
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (4)
The text was updated successfully, but these errors were encountered: