Jenkins setup for Github CI w / 2FA

My Github account has two factors enabled (2fa). I want to integrate Jenkins with several of my private repositories, but I cannot resolve them because I have 2fa enabled. Please note that this is a multi-channel project.

Any ideas on how to set up Jenkins to connect with private repositories without creating a dummy account that doesn't have 2fa support? enter image description here

+3


source to share


1 answer


Who would have thought of clicking a help button?

Credentials used to scan branches and pull requests, check out sources and mark commit statuses.

If none is given, only the public repositories will be scanned, and commit status will not be set on GitHub.

If your organization contains private repositories, then you need to specify a credential from an user who have access to those repositories.
This is done by creating a "username with password" credential where the password is GitHub personal access tokens. The necessary scope is "repo"

      



those. use Github access token as password when using username / password for your Jenkins identity.

+7


source







All Articles