You don't need a credit card, but you do need a valid payment method for any paid subscription (Xbox Live Gold → now Game Pass Core, or Game Pass Ultimate).
Pro Tip: Earn free Game Pass via Microsoft Rewards (15 min/day → ~$15/mo in points). Redeem for 3-month Ultimate codes. Effectively free forever.