Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Push failed when update GitHub workflow file #2455

Closed

Description

@hoffe86

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

Activity

  1. changed the title [-]Push failed when modify GitHub workflow yaml file[/-] [+]Push failed when update GitHub workflow file[/+] on Jan 6, 2020
  2. self-assigned this
    on Jan 6, 2020
  3. JakenVeina commented on Feb 16, 2020

    @JakenVeina

    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.

  4. RehanSaeed commented on Feb 18, 2020

    @RehanSaeed

    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.

  5. jcansdale commented on Feb 18, 2020

    @jcansdale
    Collaborator

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

  6. RehanSaeed commented on Feb 18, 2020

    @RehanSaeed
  7. jcansdale commented on Feb 19, 2020

    @jcansdale
    Collaborator

    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!

  8. RehanSaeed commented on Feb 20, 2020

    @RehanSaeed

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

  9. jcansdale commented on Feb 20, 2020

    @jcansdale
    Collaborator

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

  10. ghost closed this as completedin #2462on Feb 20, 2020
  11. seanke commented on May 5, 2020

    @seanke

    I'm still getting the same error.

  12. jcansdale commented on May 5, 2020

    @jcansdale
    Collaborator

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

  13. seanke commented on May 5, 2020

    @seanke

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

  14. bakaufman commented on May 29, 2020

    @bakaufman

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

  15. seanke commented on Jun 6, 2020

    @seanke

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

  16. bakaufman commented on Jun 7, 2020

    @bakaufman
  17. seanke commented on Jun 8, 2020

    @seanke

    @bakaufman I believe it was 'Visual Studio'.

  18. jcansdale commented on Jun 8, 2020

    @jcansdale
    Collaborator

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

  19. seanke commented on Jun 14, 2020

    @seanke

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

  20. maxnis commented on Jun 22, 2020

    @maxnis

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions