Visualstudio: Push failed when update GitHub workflow file

Created on 6 Jan 2020  ·  17Comments  ·  Source: github/VisualStudio

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

Most helpful comment

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

All 17 comments

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.

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.

@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. 😄

@jcansdale Done

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!

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

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

I'm still getting the same error.

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

@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.

@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?

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

Literally “visual studio” or "Github for VSCode”?

On Jun 6, 2020, at 7:10 PM, Sean Kelly notifications@github.com wrote:

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

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/github/VisualStudio/issues/2455#issuecomment-640130089, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHTLR2C76YE7XVVPD5KM25DRVLEFZANCNFSM4KDC25HQ.

@bakaufman I believe it was 'Visual Studio'.

@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?

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

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

Was this page helpful?
0 / 5 - 0 ratings