I cannot git push into github refusing to allow a Personal Access Token to create or update workflow #26254
-
Hi, after adding in my local repository .github and one workflow I cannot push anymore to github. Doing git push I get this error
The content of .github/workflows/checks.yaml are
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 11 replies
-
Sounds like the PAT misses the necessary permission? Make sure it has the workflow scope ticked. |
Beta Was this translation helpful? Give feedback.
-
Thank you yes I created a new personal token then was able to push and create pull request after modifying .github/workflow files |
Beta Was this translation helpful? Give feedback.
-
Hello kristijorgji, You have to generate new token with workflow scope permission. It’ll resolve your issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I've reproduced the same issue and if someone needs to refresh steps how to create a personal access token in GitHub, this video will be helpful for you. |
Beta Was this translation helpful? Give feedback.
-
Easiest fix seems like just updating the existing token with additional scope 'workflow' ... worked for me. |
Beta Was this translation helpful? Give feedback.
-
For those using So re-authenticate again with |
Beta Was this translation helpful? Give feedback.
-
I already had I don't get why this is a problem when I have GitHub Actions disabled on all my repositories. I'm trying to update a fork, the fork added a workflow file, and suddenly I can't push into my own fork to make a PR against the most recent version of the upstream branch. Pretty annoying... |
Beta Was this translation helpful? Give feedback.
-
Recently I faced this issue. |
Beta Was this translation helpful? Give feedback.
Sounds like the PAT misses the necessary permission? Make sure it has the workflow scope ticked.