nhs-england-tools / repository-template

🛠️ 📚💡 This is a detailed and carefully made template for your GitHub projects. It's based on the wide knowledge and practical experience of the engineering community within NHS England. The template includes helpful suggestions, standards and practices - it's something you should consider using for all your repositories.
MIT License
30 stars 12 forks source link

SonarCloud doesn't seem to validate token against org and project name #101

Closed stefaniuk closed 1 year ago

stefaniuk commented 1 year ago

In some cases a valid SONAR_TOKEN can be used to upload analysis report to another Sonar project. It seems that the token is not validated against sonar.organization and sonar.projectKey. This needs further investigation.

One of the options is to load both configuration settings sonar.organization and sonar.projectKey from environment variables.