DEV Community


Can't push to GitHub "Refusing to allow an OAuth App to create or update workflow without workflow scope"

jessehouwing profile image Jesse Houwing Originally published at on ・2 min read

Can't push to GitHub

When you do try to push your changes, you'll be greeted by the following error message:

![Remote Rejected] main -> main (refusig to allow an OAuth App to 
create or update workflow `...` without `worflow` scope)
Enter fullscreen mode Exit fullscreen mode

Can't push to GitHub

The error is caused by me trying to push a set of commits to my repo that include a new GitHub Action Workflow. My OAuth token has been generated by the Git Credential Manager for Windows.

A dirty workaround is to generate a new token from the GiHub Developer Settings menu and paste that into your Windows Credential Manager:

Can't push to GitHub
Generate new token

Can't push to GitHub
Update the credential in your Windows settings

This will work for a while, until the Git Credential Manager for Windows refreshes your token it seems, as the scope is revoked after some time.

A better solution is to get rid of the "old" Git Credential Manager for Windows and switch to Git Credential Manager Core. The new, cross platform, credential manager for Git, which will actually request the right scopes, doesn't seem to rely on IE11 and supports 2FA properly.

After installing that and deleting the stored credential in the Windows Credential Store, I can now push my Github workflows without issues.

Photo used under Creative Commons: Jordan Morningstar.

Discussion (0)

Editor guide