How does the Catholic Church determine the canon of Scripture?

CCC paras 119-120

Reflection: The Church, guided by apostolic Tradition, discerns which books are included in the Sacred Scriptures. This process results in a comprehensive list known as the canon of Scripture, which comprises both the Old and New Testaments.
Action: I will respect and study the Scriptures recognized by the Catholic Church, understanding that their inclusion in the canon is based on apostolic and hence Sacred Tradition. By familiarizing myself with these sacred texts, I aim to deepen my understanding of the Church's teachings, its systematic doctrine, and the divine revelation contained within them. Lord Jesus, illumine my heart and mind, so I may know you when I meditate on your Word.