Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-13604

Update deprecated endpoint to create GitHub application access tokens

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4.2, 8.5
    • Component/s: Branch & PR
    • Labels:
      None
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      GitHub is deprecating the endpoint that we are using:

      /installations/:installation_id/access_tokens

       and changing it to:

      /app/installations/:installation_id/access_tokens 

      See https://developer.github.com/changes/2020-04-15-replacing-create-installation-access-token-endpoint/

      The first brownout of the deprecated endpoint is scheduled on August 1st.

       

      Ticket reopening:

      The new endpoint is available starting with GHE 2.15, which will break the compatibility. For this reason, the SQ 8.4.2 patch will support both GHE 2.14 and GHE 2.15, by querying the endpoint /meta

      /meta

      which return this payload:

      SonarQube will parse this payload, and use the "old" endpoint for GHE 2.14 and less, and the "new" for GHE 2.15+.

      Note: For github.com, SonarQube will use the "new" endpoint.

       

      Compatibility resume:

      • SonarQube 8.4.1 support GHE 2.14 to GHE 2.21, but won't support GitHub.com after 01/10/2020
      • SonarQube 8.4.2 will support GHE 2.14, GHE 2.15+, and GitHub.com
      • SonarQube 8.5 will support GHE 2.15+ and GitHub.com

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pierre.guillot Pierre Guillot
              Reporter:
              pierre.guillot Pierre Guillot
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: