jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-75564] Support using a github cloud enterprise app for credentials in organizations within that enterprise

Open
#1,464 1 comment 2 reactions 0 assignees View on GitHub
component:github-branch-source-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
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


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

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)
> ![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

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.