Commit terraform.lock.hcl into GitHub

I want to commit the terraform.lock.hcl file when running GitHub Actions in opeville/opeville-aws-terraform so that the version remain locked but I’m having some issue achieving that. Please any suggestion on how to achieve this when running GitHub Actions.