Best practice on when to perform sonar scanning

Hi ,
This is a question: I want to know what is the best practice for performing the sonar scanning. Currently we are performing sonar scanning during
Pull-request
Code-merge
Nightly build
releasing build
Please suggest/advice the best practice.