It can’t, and it doesn’t.
Section 230 has no concern with publishers making editorial decisions. GitHub can moderate user content on its site however it wants.