Gill writes: Matthew 3:8
Bring forth therefore fruits,…. That is, if you are truly penitent, if you have a proper sense of sin, and true repentance for it, do such works as are suitable to it, and will show the genuineness of it; for
fruits meet for repentance are the same as “works meet for repentance”, Act 26:20 and as a tree is known by its fruit, so repentance is known by good works; these are the fruits and effects of repentance, and which are proofs with men of the sincerity of it. Those which follow upon evangelical repentance are such as are mentioned in 2Co 7:11. Now let it be observed, that John insisted upon repentance, and a good conversation, attesting the truth of it as necessary prerequisites to the ordinance of baptism; and so Peter first urged repentance; and then proposed baptism, Act 2:38 from whence one should think it may be rationally and strongly concluded, that none but truly repenting sinners, and such who have given proofs that they are so, are to be admitted to this ordinance.
Act 26:20 But shewed first unto them of Damascus, and at Jerusalem, and throughout all the coasts of Judaea, and then to the Gentiles, that they should repent and turn to God, and do works meet for repentance.
2Co 7:10 For godly sorrow worketh repentance to salvation not to be repented of: but the sorrow of the world worketh death.
2Co 7:11 For behold this selfsame thing, that ye sorrowed after a godly sort, what carefulness it wrought in you, yea, what clearing of yourselves, yea, what indignation, yea, what fear, yea, what vehement desire, yea, what zeal, yea, what revenge! In all things ye have approved yourselves to be clear in this matter.
Act 2:38 Then Peter said unto them, Repent, and be baptized every one of you in the name of Jesus Christ for the remission of sins, and ye shall receive the gift of the Holy Ghost.
As it relates to good woks: check out what the WCF says: