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

Credential test does not detect missing access to collaborators

      When specifying a valid GH credential to access a public GH repo (e.g. in jenkinsci), it tests as successful:

      Credentials ok. Connected to https://github.com/jenkinsci/matrix-auth-plugin.

      But when running the pipeline with the default branch discovery (discover PRs, trust users with Admin/Write access), exceptions will occur during the scan that the /collaborators URL is inaccessible.

      java.io.FileNotFoundException: https://api.github.com/repos/jenkinsci/matrix-auth-plugin/collaborators/daniel-beck/permission 

      I'd expect a warning in the credential validation test. While a pipeline can be configured to not need permission lookup, given it's both common and the default, that seems like a bug.

          [JENKINS-66366] Credential test does not detect missing access to collaborators

          Jordan added a comment -

          Also experiencing this exact same issue with a private repository.

          Jordan added a comment - Also experiencing this exact same issue with a private repository.

          This problem was temporary and caused by a change in the GitHub API that has been rolled back: https://github.community/t/github-api-collaborators-access-changed-today/201259/11.

          Allan BURDAJEWICZ added a comment - This problem was temporary and caused by a change in the GitHub API that has been rolled back: https://github.community/t/github-api-collaborators-access-changed-today/201259/11 .

          Daniel Beck added a comment -

          allan_burdajewicz I filed this issue more than a month ago. It's unrelated to that change.

          Daniel Beck added a comment - allan_burdajewicz I filed this issue more than a month ago. It's unrelated to that change.

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: