-
Notifications
You must be signed in to change notification settings - Fork 253
Description
team,
currently github app credentials are accessed using usernamepassword method.
This lacks the owner role provided by credentials of type GitHub app.
In GitHub where we have multiple organizations and using same Jenkins to access multiple orgs we need to set up same credentials with multiple names specifying different owners. it would be better to have a owner variable while calling we can pass value at runtime.
i saw couple of tickets opened long back hasn't fixed the issue yet. it would be helpful to have this feature
withCredentials([usernamePassword(credentialsId: 'github-creds', \{*}'ownervariable': 'your github org name here'{*},usernameVariable: 'github-appid', passwordVariable: 'github-token')])
{// your block here
}
Originally reported by githubofkrishnadhas, imported from: Regarding credentials binding plugin to support credentials of type GitHub App
- status: Open
- priority: Minor
- component(s): credentials-binding-plugin, credentials-plugin
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 2025-12-08
Raw content of original issue
team,
currently github app credentials are accessed using usernamepassword method.
This lacks the owner role provided by credentials of type GitHub app.
In GitHub where we have multiple organizations and using same Jenkins to access multiple orgs we need to set up same credentials with multiple names specifying different owners. it would be better to have a owner variable while calling we can pass value at runtime.
i saw couple of tickets opened long back hasn't fixed the issue yet. it would be helpful to have this feature
withCredentials([usernamePassword(credentialsId: 'github-creds', \{*}'ownervariable': 'your github org name here'{*},usernameVariable: 'github-appid', passwordVariable: 'github-token')])
{ // your block here }