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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      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`:

        Attachments

          Issue Links

            Activity

            Hide
            stephenconnolly Stephen Connolly added a comment -

            Very strange, but I think I may have reproduced it... the crazy thing is this is the one piece of the code that has not been rewritten!

            Show
            stephenconnolly Stephen Connolly added a comment - Very strange, but I think I may have reproduced it... the crazy thing is this is the one piece of the code that has not been rewritten!
            Show
            stephenconnolly Stephen Connolly added a comment - Found it, fixed it https://github.com/jenkinsci/github-branch-source-plugin/pull/141/commits/33f2da48a7b2a245b6494cee006895a9c647a967 , will probably be in beta-1
            Hide
            stephenconnolly Stephen Connolly added a comment -

            Fixed towards beta-1

            Show
            stephenconnolly Stephen Connolly added a comment - Fixed towards beta-1
            Hide
            kshultz Karl Shultz added a comment -

            Confirmed as fixed with beta-1. I'll close. Thanks, Stephen.

            Show
            kshultz Karl Shultz added a comment - Confirmed as fixed with beta-1. I'll close. Thanks, Stephen.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: