Github workflow+sonarcloud: "ERROR: main component does not belong to specified organization"

I am trying to setup sonarcloud on a public github project using github workflows:

ERROR: main component does not belong to specified organization

I’ve seen Azure DevOps / Getting main component does not belong to specified organization but could not find the mentioned issue (mixup with projectKey/projectName) in my configuration.

Here is a direct link to the output with the error: https://github.com/stefanfoulis/django-phonenumber-field/pull/322/checks?check_run_id=332742400#step:4:131

sonar-project.properties:

sonar.organisation=stefanfoulis
sonar.projectKey=stefanfoulis_django-phonenumber-field
sonar.sources=.
sonar.sourceEncoding=UTF-8

(https://github.com/stefanfoulis/django-phonenumber-field/blob/d7f58de761d25046b94b89f21e55fb8d0550e29c/sonar-project.properties)

I’ve already tried this config without sonar.organisation being set.

Cheers
Stefan

Hello @stefanfoulis,

Could you try replacing sonar.organisation with sonar.organization? That should do the trick.

Tom

thanks🤦‍♂️