I have been working with VS Code and learning GitHub Actions recently and was working through a great Pluralsight course on the subject which can be found here -> https://www.pluralsight.com/courses/building-custom-github-actions
Now I had been working away and pushing code quite the thing when I came towards the very end of the course and I got this error: –
! [remote rejected] master -> master (refusing to allow an OAuth App to create or update workflow `.github/workflows/build.yml` without `workflow` scope)error: failed to push some refs to ‘https://github.com/gsuttie/auto-release-draft.git’
I was stumped for some time until I came across the answer here https://github.com/gitextensions/gitextensions/issues/4916#issuecomment-557509451 by Mike-E-wins
To fix this I regenerated a Personal Access Token from within GitHub and then went into Credential Manager within Windows and reset the password to the new personal access token and bingo – I can now push the code once more.
Big thanks for Mike adding the solution as I had tried a number of things without success.