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

Cannot see private GitHub repos after providing valid API token (alpha-4)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None

      Summary:
      Given a GitHub API token known to work elsewhere, I am unable to access private repositories while configuring a multibranch pipeline project using GitHub as a source.

      Steps to recreate:
      1. Create a new Multibranch Pipeline project

      2. Select GitHub as your API endpoint.

      3. Supply a credential, and an owner, which has been used successfully elsewhere to access private repos. Shown below is this owner and credential being used with the Alpha plugins. In this case the `quality-assurance` repo is not available. I believe this is because it is a private repo.

      4. As a control, try with another Jenkins instance, one which is not running the alpha code. Same GitHub ID for the owner, same GitHub API token in use. The list now shows all of the repos, both public and private, including `quality-assurance`:

            stephenc Stephen Connolly
            kshultz Karl Shultz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: