Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66405

List Git Branches Parameter broken after github PAT updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • Jenkins 2.249.1
      List Git Branches Parameter PlugIn - 0.0.9
      OS - CentOS-7
      jdk- jdk1.8.0_144

      We use PAT to authenticate git repo from Jenkins using Credentials. 

      After Aug13th when GitHub removed authentication using pwd.  ([Token authentication requirements for Git operations | The GitHub Blog|https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/]) we are having issues with "List Git Branches Parameter" 

      After we click on build with parameters, we see below error in the branch list plugin space.

      hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://github.com/XXX/hello-world.git: git-upload-pack not permitted on 'https://github.com/XXX/hello-world.git/'

       

      so far, we are re-generating the token --> updating in Jenkins credentials  store --> Approve SAML to get this working. However, this only works for an hour and we try to repeat the cycle.

       

      Any help in this is greatly appreciated as it's impacting our development time lines and deployments.  

            huangsuoyuan huang suoyuan
            vamsihari Vamsi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: