Github API deprecations

SonarQube 8.4 is triggering Github API deprecation warnings. More specifically, it seems to be affected by these two announcements:


The first ‘brownout’ will be happening on the 1st of August, so it seems a fix is quite urgent.

1 Like

This is the email I’ve received for context:

On July 8th, 2020 at 20:06 (PDT) the application “***SonarQubePRChecks” owned by your organization issued a request using the deprecated endpoint for creating access tokens. GitHub has deprecated this undocumented endpoint, its replacement which accepts the same arguments is available now.

This endpoint will be removed on October 1st, 2020.

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

Hey, thanks for raising the hand on this. We are not impacted by the first one, but definitely are for the second one. The migration will be done in SonarQube 8.5, ticket is here.

@pierreguillot you say you are not impacted by the first one, but I am again getting a message from Github saying you are:

On July 22nd, 2020 at 23:12 (PDT) the application “xxx SonarQube” owned by your organization issued a request using the deprecated endpoint for creating access tokens. GitHub has deprecated this undocumented endpoint, its replacement which accepts the same arguments is available now.

This endpoint will be removed on October 1st, 2020.

Please visit https://developer.github.com/changes/2020-04-15-replacing-create-installation-access-token-endpoint/ for more information about suggested changes, brownouts, and removal dates.

[edit]
Looking at the JIRA it seems you may have meant that you are not impacted by the second one, if so, please disregard this post.

Hi,

We’ve just released SonarQube 8.4.2, which updates GitHub API usage.

 
HTH,
Ann

1 Like

Hi,

@ganncamp We are using SonarQube 7.9.4 (Developer Edition) LTS version and getting this same email from Github. We have added pull request decoration to Github checks according to documentation at https://docs.sonarqube.org/7.9/instance-administration/github-application/.

  • We want to keep the pull request decorations working, so what are the required steps from us?
  • Is there going to be a SonarQube patch release for LTS as well?
  • Any configuration needed for the Github app?

Hey there @iluwatar

GitHub.com was not supported in SonarQube 7.9 LTS, even though it may have worked if you found the right API Url. Support was declared for GitHub Enterprise only. You will need to update to SonarQube 8.4.2 for PR Decoration to continue working after October 1st: