What's unethical about GitHub?
It was what pushed my hobby group to Gitlab, though I recently set up github for my company as a temporary measure.
Selling to military, spy agencies, and law enforcement is not in any way unique to Microsoft and GitHub.