DEV Community

Discussion on: Create Deployment Pipeline for React App on Hostinger

Collapse
 
angelsol299 profile image
Angel • Edited

I get this error, what could it be?
I followed all the steps correctly.
And granted the accesses that you nentioned

Image description

Collapse
 
mwoodson11 profile image
Mark Woodson • Edited

It looks like the permissions error where it's not allowing Github Actions to write to your branch. If you already tried using a Personal Access Token instead of the Github Token, can you also check that in your Settings -> Actions -> General -> Workflow permissions, and make sure 'read and write permissions' is selected
Image description

Also you can try adding this to the publish.yaml file:

permissions:
  contents: write
Enter fullscreen mode Exit fullscreen mode