The Catechism in Questions & Answers

511. What is the prerequisite for worthily partaking in Holy Communion?

In addition to the forgiveness of sins, which is proclaimed beforehand, belief in Jesus Christ and His sacrifice is a necessary prerequisite.

Forgiveness of sins: see Questions 415., 507., 629., 644. et seq.