jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-71862] Scan fails on Could not fetch branches from source.

Open
#1,425 0 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

Scan fails. see log below.

I tried several Jenkins secrets. All with same App ID and Key. Some work and some fail as below.

Printing the secrets from the script console, I noticed that thous that work has a value in their properties.password field, while those that fail does not.

Thanks,

  Ziv

 

 

From scan log:

ERROR: [Mon Aug 21 08:16:46 IDT 2023] Could not fetch branches from ...

FATAL: Failed to recompute children of ...

org.kohsuke.github.HttpException:


{"message":"Bad credentials","documentation_url":"

[https://docs.github.com/rest]

"}

Caused: java.lang.IllegalArgumentException: Couldn't authenticate with GitHub app ID ...

---
Originally reported by zharpaz, imported from: Scan fails on Could not fetch branches from source.


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

Scan fails. see log below.
I tried several Jenkins secrets. All with same App ID and Key. Some work and some fail as below.
Printing the secrets from the script console, I noticed that thous that work has a value in their properties.password field, while those that fail does not.

Thanks,

  Ziv

 

 

From scan log:

ERROR: [Mon Aug 21 08:16:46 IDT 2023] Could not fetch branches from ...

FATAL: Failed to recompute children of ...

org.kohsuke.github.HttpException:


{"message":"Bad credentials","documentation_url":"

[https://docs.github.com/rest]

"}

Caused: java.lang.IllegalArgumentException: Couldn't authenticate with GitHub app ID ...

environment

```
OS:Linux 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Jenkins 2.401.1

GitHub API Plugin Version 1.314-431.v78d72a_3fe4c3

GitHub Branch Source Version 2.9.5

GitHub Organization Folder Plugin Version 1.6

Pipeline: GitHub Groovy Libraries Version 1.0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.