0

I have a multi-module Maven-based Java project. Experimenting on CI, I use Github Actions to automatically perform run unit tests and code quality scan on SonarCloud.

Running unit test and code quality scan to SonarCloud locally works fine. However, this error keeps popping up on Github Actions: Project was never analyzed. A regular analysis is required before analyzing a pull request.

I have read the documentation and several other questions, but the answer is to analyse the master branch (main branch) first, which I already did from my local, and the SonarCloud itself has been populated by code analysis from the main branch.

What should I do? Thanks in advance for any help.

user8152821
  • 157
  • 2
  • 10

1 Answers1

0

Sorry, this was my bad. I had forgotten about the default value of sonar.projectKey value in Maven project and the incorrect key was why I could not link the repository with SonarCloud.

user8152821
  • 157
  • 2
  • 10