GH being bought by MSFT way precedes their OpenAI involvement IIRC. And I don’t think it was even needed to train their models given Anthropic does fine without owning GitHub.
So this logic doesn’t pass the smell test to me.
EDIT: seems there was only a year in between them buying GH (2018) and investing in OpenAI (2019). So _maybe_ they had that foresight.