The new release of GitHub action for SonarQube v.4.2 - Server and Cloud

Hello SonarQube users!

Exciting news! We are happy to announce that we have just released a new minor version of the GitHub action for SonarQube - v4.2.

The previous version v4.1 made this GitHub action the official entrypoint for both SonarQube Server and SonarQube Cloud, replacing sonarcloud-github-action.

The new version v4.2 brings support for C, C++, and Objective-C projects, replacing both sonarqube-github-c-cpp and sonarcloud-github-c-cpp.

As for the previous C++ specific actions, this action supports both AutoConfig scenarios, as well as scenarios where Build Wrapper is required.

To install Build Wrapper, a new sonarqube-scan-action/install-build-wrapper sub-action is provided.

Check the README for more details and examples of configuration.

On top of C, C++, and Objective-C support, we have also improved our support of self-hosted GitHub runners:

  • we don’t expect anymore the temporary runner folder (RUNNER_TEMP) to be cleaned after every job execution: if present, the action will clean it, before running
  • similarly, we don’t expect anymore the Sonar SSL truststore file (~/sonar/ssl/truststore.p12) to be cleaned after every job execution: if present, the action will clean it (removing the sonar alias from it), before running

For further information, you can look at the release notes on GitHub or at the entry page of the action in the GitHub Marketplace.

Best regards,
Antonio

1 Like