It's strange how this thing was not an opt-in feature at GitHub. I also feel like this thing is a violation of my integrity and I will consider stop using GitHub as well
From their perspective, they weren't doing anything that abused their privileged position. Tabnine trained their model on open source code, much of which was probably hosted on GitHub. Why should GitHub have to ask permission if tabnine didn't?
Whether training an ML model on code is fair use is still an open question, but I don't think GitHub is a greater villain here than anyone else doing the same thing (at least until they start using private repos).