Project suddenly not found

I have a couple of projects running from GitLab CI/CD. They all work without issue but I now have one project that suddenly started giving an error stating: Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator.

The project is showing up in the SonarCloud backend, the GitLab key is valid for our entire group and works for all other projects. Any idea what is going on here?

Hi,

Welcome to the community!

Very typically the problem when you see this error is a missing / invalid SONAR_TOKEN value. I would start by double-checking that.

 
HTH,
Ann

Hi Ann,

Thanks I edited the analysis method on the project in question and went through the tutorial which generated a new SONAR_TOKEN which I changed in the GitLab CI/CD vars and now it works again. So that’s great but what I don’t understand is why that token was suddenly invalidated without us changing anything? It’s not great when a change like that happens without any communication about it that breaks our pipelines.

Hi,

Does your project use CircleCI? Is it possible the token was revoked in response to their recent breach?

 
Ann

Hi,

No it doesn’t. The token was also not a CI platform token but the SonarCloud token, so that changed on SonarCloud’s side not ours?

Hi,

Do you use CircleCI? After the breach, people are revoking their SonarCloud tokens.

 
Ann