ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 229 forks source link

remote: Permission to ssk4ever903/Sreeaknth-April-Assesments.git denied to ssk903. fatal: unable to access 'https://github.com/ssk4ever903/Sreeaknth-April-Assesments.git/': The requested URL returned error: 403 #165

Open ssk4ever903 opened 1 year ago

ssk4ever903 commented 1 year ago

I never get the token page to authenticate. can anyone help me to fix this issue

ssk4ever903 commented 1 year ago

Remote: Permission to ssk4ever903/Sreeaknth-April-Assesments.git denied to ssk903. fatal: unable to access 'https://github.com/ssk4ever903/Sreeaknth-April-Assesments.git/': The requested URL returned error: 403

this is the error message i am getting

ZPascal commented 1 year ago

Hi @ssk4ever903, it would be helpful to share the complete workflow file and also the full output of the failed job.

DarylStark commented 1 year ago

I had the same issue and it turned out I didn't set the correct permissions for the GITHUB ACCESS token.

bobbintb commented 1 year ago

I had the same issue and it turned out I didn't set the correct permissions for the GITHUB ACCESS token.

Could you elaborate?

DarylStark commented 1 year ago

I had the same issue and it turned out I didn't set the correct permissions for the GITHUB ACCESS token.

Could you elaborate?

GitHub > Settings > Developer settings > Personal access tokens > Fine-grained tokens > Click on your token > Edit > Set the correct permissions.

I'm not quite sure what permissions are needed (I don't use it anymore)

AlwaysBeCalm commented 1 year ago

@ZPascal I'm getting the same exception, even though I created a PAT and a fine-grained PAT with 100% privileges. image

attached are the entire log files. logs_4.zip

AlwaysBeCalm commented 1 year ago

This solved it for me.

ZPascal commented 1 year ago

Hi @AlwaysBeCalm, good to here that now GH Action works as expected. I'll document the corresponding steps to set up the necessary rights for the action as a follow-up.