No, I didn't, because I quit GitHub when they started demanding mandatory SMS 2FA
They haven't demanded that of me. I have 2FA with a Yubikey and a TOTP app.
I don't ever recall giving them my phone number.
As a matter of fact GH even has a red "Less secure" badge on the SMS 2FA in the settings discouraging its use, as well as the following text in the description: "We strongly advise against using SMS because it is susceptible to interception, does not provide resistance against phishing attacks, and deliverability can be unreliable."