Allow public repo searching

GITLAB-1386

Change-Id: I9a0bbe8db1a9bb00cef33b3e1854d78844b70a45
Updated convience method to private
Merge pull request #5427 from karlhungus/feature_search_code_in_public_repos

Allow public repo searching