You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Push failed when update GitHub workflow file #2455
GitHub Extension for Visual Studio version: 2.10.8.8132
Visual Studio version: VS 2019 ENT (16.4.2)
What happened
When I try to updated a GitHub workflow file (yaml file) the push will fail with following error:
Error encountered while pushing to the remote repository: rejected features/cicd -> features/cicd (refusing to allow an OAuth App to create or update workflow .github/workflows/main.yml without workflow scope)
Steps to Reproduce
Steps to reproduce the behavior:
Modify GitHub workflow file in a non master branch
Push changes to repository
Expected behavior
Visual Studio Github extensions has enough rights to create or update a workflow
Logs
Error encountered while pushing to the remote repository: rejected features/cicd -> features/cicd (refusing to allow an OAuth App to create or update workflow .github/workflows/main.yml without workflow scope)
Additional context
N/A
Reacted by Pavel, Muhammad Rehan Saeed, Ladislav M., Danni, Konstantin, ps-natty, Federico Dainelli, pedrobern and Konstantin Mishur
I mainly use VS + Windows Terminal to perform git operations. It's been weeks now and this issue is still very annoying. Would be nice to get some sort of ETA.
Activity
[-]Push failed when modify GitHub workflow yaml file[/-][+]Push failed when update GitHub workflow file[/+]JakenVeina commentedon Feb 16, 2020
Seconding this issue.
This issue is referenced here. It seems that the application simply needs to be updated to request use of the
workflowscope when it requests tokens.RehanSaeed commentedon Feb 18, 2020
I mainly use VS + Windows Terminal to perform git operations. It's been weeks now and this issue is still very annoying. Would be nice to get some sort of ETA.
jcansdale commentedon Feb 18, 2020
@RehanSaeed any chance you could open a ticket here:
https://support.github.com/contact
I now work in developer support rather than on this extension. If you open a ticket, I'll be able to track it there and hopefully get it fixed!
Please mention @jcansdale so it will be routed to me. 😄
RehanSaeed commentedon Feb 18, 2020
@jcansdale Done
jcansdale commentedon Feb 19, 2020
Hey folks 👋 could you try installing the
vsix/GitHub.VisualStudio.vsixartifact from here:https://github-editor-tools.visualstudio.com/VisualStudio/_build/results?buildId=2246&view=artifacts&type=publishedArtifacts
This should request the
workflowscope when authenticating. After installing it, you can re-authenticate by clicking onAdd/Change Accounts:Please let me know how you get on!
RehanSaeed commentedon Feb 20, 2020
If I install this version, will it continue to receive updates?
jcansdale commentedon Feb 20, 2020
@RehanSaeed you will. This version should simply be ahead of any new releases.
seanke commentedon May 5, 2020
I'm still getting the same error.
jcansdale commentedon May 5, 2020
@seanke have you re-authenticated using a recent version of GitHub for VS? That should fix the issue.
seanke commentedon May 5, 2020
Thanks, I deleted the Visual Studio Application from my github settings and that did the trick.
bakaufman commentedon May 29, 2020
What does this mean?
seanke commentedon Jun 6, 2020
@bakaufman I needed to remove Visual Studio from here https://github.com/settings/applications
bakaufman commentedon Jun 7, 2020
seanke commentedon Jun 8, 2020
@bakaufman I believe it was 'Visual Studio'.
jcansdale commentedon Jun 8, 2020
@seanke I didn't know this was possible!
I'm guessing it was the
Revoke accessbutton on this page that you clicked?https://github.com/settings/connections/applications/a200baed193bb2088a6e
Did this force a fresh login next time you went to use GitHub for VS?
seanke commentedon Jun 14, 2020
@jcansdale Yes, that's the one. Yes it forced a fresh login.
maxnis commentedon Jun 22, 2020
Revoke access for VS Code in Github applications helped fixing this issue.