Skip to content
Discussion options

You must be logged in to vote

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

permissions:
  contents: write

Once you commit that, GitHub Actions should be able to push without the “Permission denied” issue.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by guiguivoce
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Actions Build, test, and automate your deployment pipeline with world-class CI/CD Misc General discussions about GitHub Actions that don't fit other found themes.
2 participants