Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40422

Inferring credentials resolves wrong credential

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            chrono Martin Ringehahn created issue -
            chrono Martin Ringehahn made changes -
            Field Original Value New Value
            Description 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.
            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.
            rarabaolaza Raul Arabaolaza made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rarabaolaza Raul Arabaolaza made changes -
            Remote Link This issue links to "PR-2 (Web Link)" [ 15148 ]
            rarabaolaza Raul Arabaolaza made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            liyatikal liyatikal made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]

              People

              • Assignee:
                rarabaolaza Raul Arabaolaza
                Reporter:
                chrono Martin Ringehahn
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: