Yet Jansenius allows that sinners can do some good works, with Trent
Although that man acknowledges no good work except what proceeds from charity and from faith working in some way through love, he does not deny that sinners, that is, those in mortal sin, who have not yet been justified and obtained the forgiveness of their sins, can do some good works.
In this he subscribes to the Council of Trent, which pronounces anathema on those who affirm that all works done before justification are true sins: 'If anyone says that all works done before justification, in whatever way they are done, are true sins or merit God's hatred, let him be anathema.' Session 6, canon 7.
Latin
XLVI. Quamvis autem vir ille nullum bonum opus agnoscat, nisi quod a charitate & fide quodammodo per dilectionem operante procedat, non negat tamen peccatores, hoc est, in peccato mortali constitutos, & qui nondum justificati sunt, & peccatorum suorum remissionem adepti, posse quaedam bona opera facere. Atque in eo subscribit Tridentinae Synodo, quae anathema dicit iis qui affirmant omnia opera quae ante justificationem fiunt, vera esse peccata. Si quis dixerit, inquit, Opera omnia quae ante justificationem fiunt, quacunque ratione facta sint, vera esse peccata, vel odium Dei mereri, anathema sit. Canone septimo Sessionis sextae.