> This is clearly a bad idea, because credit cards
Debit cards are, though, and it doesn't make any difference for online payments.
Ideally GitHub should support more local options (e.g. SEPA transfers, UPI, etc.), but card payments are already a very good starting point.