Literally the only thing you have to do in Catholicism to not lose salvation is not to commit a mortal sin. That's literally it. And if you do, you just go to confession. Any other points of contention Protestants have with Catholic soteriology don't have to do with eternal salvation, like penance, indulgences, purgatory, merit, or an increase in justification, as these pertain merely to temporal matters. Just get baptized and don't sin mortally. But if you do, just go to confession real quick and you're good. If you somehow can't get to confession just make an act of contrition. If for some reason you can't be baptized just keep having faith and you'll be justified. That's it. That is literally it.