THAT is a works based salvation.
You have to work to attain it. it's works based, not based on the finished work of Christ on the cross which is complete and needs no amending.
Your comment: “You have to work to attain it. it’s works based, not based on the finished work of Christ on the cross which is complete and needs no amending. “
Yes Christ opened he door to heaven, and we must walk through the door by following God’s will with our faith and doing good works that please Him. That is earning it the hard way with His graces by loving God and our neighbor.
If you don’t work, you can’t accomplish God’s will. Try it, perhaps your genuine faith in God will increase.