Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Github Pull Request Builder Plugin throwing user authentication error

I'm using https://github.com/jenkinsci/ghprb-plugin plugin for my Jenkins to initiate job build when pull request is raised. 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.

enter image description here

like image 907
Aditya Malviya Avatar asked Jan 28 '26 07:01

Aditya Malviya


1 Answers

Right now you are using github username and password. But you need to use github access token instead of password for authentication. You can create an access token from settings -> Developer Settings -> Personal Access tokens -> Generate new token.

like image 118
Nisarg Shah Avatar answered Jan 31 '26 18:01

Nisarg Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!