Once you have setup your SonarQube servers, you just need to use the SonarQube Connector Quality Profile Macro to setup the resource you want to get the security hotspots from.

You have to complete these parameters: