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

Github branch source plugin JWT errors

XMLWordPrintable

      Hi,

      The new breaking change upgrade broken the Github Branch Source plugin, It is no more able to connect Github with GithubApp private keys and throws below JWT error.

      The private key is working fine as I have tested in my local and it can access Github API and clone, also have enough permissions. 

       

      The plugin was working before the breaking changes.

      When I test connection on credentials window I get this error 

      org.kohsuke.github.HttpException: {"message":"A JSON web token could not be decoded","documentation_url":"https://docs.github.com/rest","status":"401"}
      at PluginClassLoader for github-api//org.kohsuke.github.GitHubConnectorResponseErrorHandler$1.onError(GitHubConnectorResponseErrorHandler.java:88)

       

      Also when I clone the repo it throws this error

      ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: hudson.remoting.ProxyException: java.lang.IllegalArgumentException: Couldn't authenticate with GitHub app ID 1122 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:157)

       

        1. image-2025-09-17-11-45-29-803.png
          84 kB
          Chiranjeevi
        2. image-2025-09-25-12-20-48-425.png
          56 kB
          Chiranjeevi
        3. image-2025-09-25-12-23-48-659.png
          44 kB
          Chiranjeevi
        4. image-2025-09-25-12-25-58-029.png
          114 kB
          Chiranjeevi

            Unassigned Unassigned
            chiranjeevi_patel Chiranjeevi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: