How did the man on the cross next to Jesus got to paradise? Is it by good works or by his belief in Jesus?

good works or belief