-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
pipeline-githubnotify-step-plugin 1.0.0
jenkins 2.36
The inference for the github credentials uses getCredentials which return checkout credentials.
Checkout credentials can be SSH credentials, unsuitable for API calls such as commit status updates.
When checkout credentials are SSH credentials, inference fails with: java.lang.IllegalArgumentException: The credentialsId does not seem to exist, please check it
Instead, the plugin should probably use getScanCredentialsId to obtain its credentials.
- links to
[JENKINS-40422] Inferring credentials resolves wrong credential
Description |
Original:
The inference for the github credentials uses `getCredentials` which return checkout credentials. Checkout credentials can be SSH credentials, unsuitable for API calls such as commit status updates. When checkout credentials are SSH credentials, inference fails with: {{java.lang.IllegalArgumentException: The credentialsId does not seem to exist, please check it}} Instead, the plugin should probably use {{getScanCredentialsId}} to obtain its credentials. |
New:
The inference for the github credentials uses {{getCredentials}} which return checkout credentials. Checkout credentials can be SSH credentials, unsuitable for API calls such as commit status updates. When checkout credentials are SSH credentials, inference fails with: {{java.lang.IllegalArgumentException: The credentialsId does not seem to exist, please check it}} Instead, the plugin should probably use {{getScanCredentialsId}} to obtain its credentials. |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "PR-2 (Web Link)" [ 15148 ] |
Hi chrono,
Thanks a lot for your time and feedback, Your suggestion makes a lot of sense, I will investigate this and keep you informed
Regards, Raúl