Any virus or malware can be uploaded to a repo on GitHub without repercussion . So whether GitHub is dangerous or not will depend on how you use it. Enormous software companies use GitHub without any negative consequences so in the right hands GitHub is safe to use.