The problem

Error pushing code to Github. Git push github master The following error message is displayed:

! [remote rejected] master -> master (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope)
Copy the code

survey

  • Is the Personal Access Token not set? It is confirmed that the Token has been set for the account and has not expired. After checking the information, the Token failure does not mean throwing this exception.

  • . Making/workflows/build. Yml this keyword search, found in the code. Making this directory, use inside the workflow, then on the Google search to the problem.

The solution

Open github.com/settings/to… When we found our token, we clicked into it and saw that there was a workflow that was not selected in the following function authorization place, so we did not have this permission, resulting in an error when we pushed to Github.

Check the workflow, click Update Token to save, and push again.