Sourcegraph Cloud protects your private code using repository permissions from GitHub.com and GitLab.com to determine who can see repositories you've added to Sourcegraph Cloud.
If a repository is public on GitHub.com or GitLab.com, other users on Sourcegraph Cloud can view and search across that repository. The repository will appear in the global search context.
If a repository is private on GitHub or GitLab, only users who have permission to access that repository on the code host and have added that repository to Sourcegraph Cloud, you can view and search that repository. The repository will not appear in search results for other users.
The Sourcegraph team and administrators on Sourcegraph Cloud cannot view private repositories. You can read more in our privacy policy.
NOTE: We are working towards bringing Sourcegraph Cloud to organizations. We are hoping to deliver an early-access version in late fall 2021. Follow our Twitter for the latest updates.