Sonar analysis failing

I am trying to run Sonar analysis on my Vue.js project using Bitbucket Pipelines. I am using a Bitbucket pipe for this.
pipe: sonarsource/sonarcloud-scan:2.0.0

Getting the following error:
Project or branch in report (project_key) does not match the project or branch under which it was submitted (project_key:BRANCH:main_branch)

ID: AZLcum-VpUEeN4i1o-uG
Submit time: 14:50:58

Can someone please help?

I fixed this by changing my project key, but please let me know if there’s any other way.

Hey Tarush,
Thanks for reaching out. This is a known issue. Indeed, your workaround is the current recommended way to fix it.

Happy coding!