jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-71862] Scan fails on Could not fetch branches from source.
- 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.
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
Assessment
This issue has not been assessed yet.