Hi,
I think your use case is practically the same as in this other thread: SonarCloud Pull Request integration with multiple builds
The short answer is that either you must reorganize your setup to analyze both projects in a single analysis, or create two separate SonarQube projects.
I’m closing this topic as a duplicate, please follow the discussion in the other thread.
Cheers,
Janos