How to use Sonar github integration to block pull request from fork repository

Precondition :
I forked a repository and sent a PR to main repository to merge code by github.
My code includes sonar critical issue.

Current issue:
If I send PR to main repository, the PR can be blocked.

If I send PR from my fork repository to main repository, my PR will pass. But I hope it’s failure. I want to
My PR being blocked due to sonar critical issue. My github account has been installed sonar github integration plugin.

Does anybody have experience about it?


Welcome to the community!

What version of SonarQube are you using?

And your scenario isn’t quite clear to me. Could you explain it again, please?