jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-75564] Support using a github cloud enterprise app for credentials in organizations within that enterprise
- Dominant language
- Java
- Stars
- 217
- Forks
- 398
- Avg merge
- 30m
- Merged PRs (30d)
- 1
Description
When creating credentials for an Enterprise Github App in jenkins, we have to specify the "owner" (the organization within the enterprise) in order for the enterprise credentials to work within that organization.
in practice this means we need to create a multiple sets of credentials for this enterprise app, one for each organization in the enterprise, in order for them to work.

If we don't specify the "Owner" the credentials will not work for checking out repos from any organization. If we do specify the "Owner" then those credentials will work for checking out repos in ONLY that organization.
I would like to only have to create a single Github App credential in Jenkins, that will work to pull repos from ANY organization within the enterprise of that Github App.
---
Originally reported by jforest, imported from: Support using a github cloud enterprise app for credentials in organizations within that enterprise
Raw content of original issue
When creating credentials for an Enterprise Github App in jenkins, we have to specify the "owner" (the organization within the enterprise) in order for the enterprise credentials to work within that organization.
in practice this means we need to create a multiple sets of credentials for this enterprise app, one for each organization in the enterprise, in order for them to work.
If we don't specify the "Owner" the credentials will not work for checking out repos from any organization. If we do specify the "Owner" then those credentials will work for checking out repos in ONLY that organization.
I would like to only have to create a single Github App credential in Jenkins, that will work to pull repos from ANY organization within the enterprise of that Github App.
environment
```
Jenkins 2.492.3
GitHub Branch Source Plugin
Version1815.v9152b_2ff7a_1b_
```
1 attachment
- [image-2025-04-16-10-39-48-977.png](https://issues.jenkins.io/secure/attachment/64288/image-2025-04-16-10-39-48-977.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.