[SECURITY-158] GitSCMSource needed to be checked as well.

Amends 39d585a41d6a7b91d3a48b1344d4085297641b89.