Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aditya-malviya opened this issue Mar 4, 2021 · 11 comments
Labels

Comments

@aditya-malviya
Copy link

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
Copy link

piclez commented Mar 23, 2021

Same problem here...

@bl4keee
Copy link

bl4keee commented Mar 23, 2021

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
Copy link

piclez commented Mar 23, 2021

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

@bl4keee
Copy link

bl4keee commented Mar 24, 2021

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
Copy link
Author

aditya-malviya commented Mar 24, 2021 via email

@sushmitabhandari
Copy link

sushmitabhandari commented Jul 19, 2021

Were you able to resolve issue? Facing same issue

@youssefelhirech
Copy link

+1, same for me

@SumanthBurla
Copy link

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
Copy link

piyas33 commented Sep 28, 2022

Password will be token.

@sumanthkatti
Copy link

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

@piyas33
Copy link

piyas33 commented Oct 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants