8For by grace you have been saved through faith. And this is not your own doing; it is the gift of God, 9 not a result of works, so that no one may boast. 10For we are his workmanship, created in Christ Jesus for good works, which God prepared beforehand, that we should walk in them.
Paul meant works of the Law. Elsewhere, he says just that. And here he says “you have been saved,” which is initial justification, which comes by unmerited grace, which is exactly what the Church teaches. That is not the same as ongoing salvation, which must be “worked out in fear and trembling.”