The Wayback Machine - https://web.archive.org/web/20201215063214/https://github.com/github/VisualStudio/issues/2455
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

Push failed when update GitHub workflow file #2455

Closed
hoffe86 opened this issue Jan 6, 2020 · 17 comments
Closed

Push failed when update GitHub workflow file #2455

hoffe86 opened this issue Jan 6, 2020 · 17 comments
Assignees

Comments

@hoffe86
Copy link

@hoffe86 hoffe86 commented Jan 6, 2020

Versions

  • 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:

  1. Modify GitHub workflow file in a non master branch
  2. 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

@hoffe86 hoffe86 changed the title Push failed when modify GitHub workflow yaml file Push failed when update GitHub workflow file Jan 6, 2020
@jcansdale jcansdale self-assigned this Jan 6, 2020
@JakenVeina
Copy link

@JakenVeina JakenVeina commented 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 workflow scope when it requests tokens.

@RehanSaeed
Copy link

@RehanSaeed RehanSaeed commented 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
Copy link
Collaborator

@jcansdale jcansdale commented 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
Copy link

@RehanSaeed RehanSaeed commented Feb 18, 2020

@jcansdale Done

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Feb 19, 2020

Hey folks 👋 could you try installing the vsix/GitHub.VisualStudio.vsix artifact from here:
https://github-editor-tools.visualstudio.com/VisualStudio/_build/results?buildId=2246&view=artifacts&type=publishedArtifacts

This should request the workflow scope when authenticating. After installing it, you can re-authenticate by clicking on Add/Change Accounts:

image

Please let me know how you get on!

@RehanSaeed
Copy link

@RehanSaeed RehanSaeed commented Feb 20, 2020

If I install this version, will it continue to receive updates?

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Feb 20, 2020

@RehanSaeed you will. This version should simply be ahead of any new releases.

@seanke
Copy link

@seanke seanke commented May 5, 2020

I'm still getting the same error.

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented May 5, 2020

@seanke have you re-authenticated using a recent version of GitHub for VS? That should fix the issue.

@seanke
Copy link

@seanke seanke commented May 5, 2020

@seanke have you re-authenticated using a recent version of GitHub for VS? That should fix the issue.

Thanks, I deleted the Visual Studio Application from my github settings and that did the trick.

@bakaufman
Copy link

@bakaufman bakaufman commented May 29, 2020

@seanke have you re-authenticated using a recent version of GitHub for VS? That should fix the issue.

Thanks, I deleted the Visual Studio Application from my github settings and that did the trick.

What does this mean?

@seanke
Copy link

@seanke seanke commented Jun 6, 2020

@bakaufman I needed to remove Visual Studio from here https://github.com/settings/applications

@bakaufman
Copy link

@bakaufman bakaufman commented Jun 7, 2020

@seanke
Copy link

@seanke seanke commented Jun 8, 2020

@bakaufman I believe it was 'Visual Studio'.

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Jun 8, 2020

@seanke I didn't know this was possible!

I'm guessing it was the Revoke access button 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
Copy link

@seanke seanke commented Jun 14, 2020

@jcansdale Yes, that's the one. Yes it forced a fresh login.

@maxnis
Copy link

@maxnis maxnis commented Jun 22, 2020

Revoke access for VS Code in Github applications helped fixing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

7 participants
You can’t perform that action at this time.