GitHub Actions Fails When Trying to Push Changes #178231
-
| Why are you starting this discussion?Bug What GitHub Actions topic or product is this about?Misc Discussion DetailsI’m running into a weird problem with my GitHub Actions workflow.  | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| This is actually a common one! By default, the GITHUB_TOKEN inside GitHub Actions sometimes only has read access, which means it can’t push changes unless you explicitly grant write permissions. Try adding this at the top of your workflow file Once you commit that, GitHub Actions should be able to push without the “Permission denied” issue. | 
Beta Was this translation helpful? Give feedback.
-
| Yeah that works | 
Beta Was this translation helpful? Give feedback.
This is actually a common one!
By default, the GITHUB_TOKEN inside GitHub Actions sometimes only has read access, which means it can’t push changes unless you explicitly grant write permissions.
Try adding this at the top of your workflow file
Once you commit that, GitHub Actions should be able to push without the “Permission denied” issue.