Personal Access Token not accepted without workflow token despite having workflow token

Solved
The problem was being caused by my credentials being cached in Mac’s Keychain Access via the Git config setting credential.helper=osxkeychain.

In order to ensure this particular repo was using the Personal Access Token, I followed this Stack Overflow answer:

  • git config --local --replace-all credential.helper '' to remove all credential helpers just for this repo (make sure to use --local).
  • git config --local --add credential.helper cache to add cache back to the local repo.
  • git push then prompted me to login. For password I used the Personal Access Token with workflow scope. The push worked, and the PAO is now cached in the local repo.

Original Post

Any thoughts on why this new personal access token might not be working?