SonarCloud not detecting Python project configuration after importing the project

  • ALM used: GitHub
  • CI system used: Github Actions
  • Languages of the repository: Python
  • Steps to reproduce
  • Create a Python project in Github under your organization
  • Add the project to the SonarCloud projects from the SonarCloud UI
  • Go the project web page

The Python project, which is an Azure Function based app, contains the sonar-project.properties file at its roots with the sonar.projectKey= and sonar.organisation= variables properly setup.

In the Organization web page, SonarCloud indicates in the Python project the following

Extra configuration steps requiredConfigure analysis

When clicking on Configure analysis it asks me to setup the CI. However this is already done. The SONAR_TOKEN has been added and the Github actions properly setup. So it means that SonarCloud doesn’t seem to detect the sonar-project.properties file.

All my others projects work fine. The only difference is that they are not Python based, they are Java and JS/TS.

Any help is appreciated. Thank you.

Best,
JM.

Hey there.

Have you run an analysis on your main branch yet?