After setting up GitHub Actions on one of my projects, I ran into the below problem and before setting up Github Actions I was able to push without any probem on my project.
! refs/heads/main:refs/heads/main [remote rejected] (refusing to allow an OAuth App to create or update workflow .github/workflows/laravel.yml without workflow scope)
It took bit of time online to figure out how to fix this, the best way seems to be to download Git Credential Manage Core.
After instailing this, the problem went away and I was able to push again.