Terraspace + Docker + Github actions job fail on error

I have a setup where I have the terraspace commands dockerized and executed thru an entrypoint.
Now when the validate gives some errors the job completes successfully, is there any way that if the validate, plan, graph, etc to the docker exit with an error so that the github action stage fails ?

Thanks !