jenkinsci / ghprb-plugin

github pull requests builder plugin for Jenkins
https://plugins.jenkins.io/ghprb/
MIT License
507 stars 612 forks source link

Jenkins Github Pull Request Builder Plugin throwing user authentication error #810

Open aditya-malviya opened 3 years ago

aditya-malviya commented 3 years ago

I'm getting below error "Unable to connect to GitHub API: org.kohsuke.github.HttpException: {"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/reference/users#get-the-authenticated-user"}"

Tried with multiple user on 2 different Jenkins, issue remains same.

image

piclez commented 3 years ago

Same problem here...

bl4keee commented 3 years ago

Update your credentials by providing your oauth token. It is still the same credential type - username/password, but password section should include your token.

piclez commented 3 years ago

Thank you @bl4keee! I created a new access token and its working.

bl4keee commented 3 years ago

Can you provide instruction that you were following in order to set up Github Pull Request Builder plugin? Even though token access is working good, my jobs are not being triggered on raising pull request... :/

aditya-malviya commented 3 years ago

+1 to this problem.

On Wed, Mar 24, 2021 at 2:47 PM Bartosz Walczak @.***> wrote:

Can you provide instruction that you were following in order to set up Github Pull Request Builder plugin? Even though token access is working good, my jobs are not being triggered on raising pull request... :/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jenkinsci/ghprb-plugin/issues/810#issuecomment-805635103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAGTXPGOCQA5KG4SP4LTMDTFGU4PANCNFSM4YSSHY3Q .

sushmitabhandari commented 3 years ago

Were you able to resolve issue? Facing same issue

youssefelhirech commented 2 years ago

+1, same for me

SumanthBurla commented 2 years ago

Update your credentials by providing your oauth token. It is still the same credential type - username/password, but password section should include your token.

same issue and resolved following the above. Thanks @bl4keee :)

piyas33 commented 2 years ago

Password will be token.

sumanthkatti commented 2 years ago

how do i generate a token? i have the same exact issue

piyas33 commented 2 years ago

how do i generate a token? i have the same exact issue

https://safaetulahasan.medium.com/remote-support-for-password-authentication-was-removed-on-august-13-2021-8f1c24aeef02

Follow this tutorial. I hope it helps you.