Therefor by the deeds of the law there shall no flesh be justified in his sight. It is not what you achieve, but in Whom you believe. That is the secret. Good works have nothing to do with obtaining our salvation. But they have everything to do with our response to our salvation.
Good works are important for salvation, but that's the response.
Good works are a loving response on our part for what Jesus did on the cross for us. You must overcome to qualify. We must overcome our inclination to live a life separate from God. This is the victory that has overcome the world, even our faith . Only he who believes that Jesus is the Son of God.