Template Pipeline not acting as i'd expect

Im trying to use the Terraform Template and I’ve noticed something strange about how its working.

Im using this template

Which is basically calling this one

and this one

The only rule is for the Terraform Apply to be done on the default branch lib/gitlab/ci/templates/Terraform/Base.gitlab-ci.yml · master · GitLab.org / GitLab · GitLab

It seems that if there are no rules it only runs on a branch, which means the fmt/validate/plan dont happen on the MR (and cant be block merge on failure)

Is it correct that if there are no rules, it only runs on branches/commits?
It seems like that template should be updated to tell it to run on an MR or main, and probably not just commits? If this is correct, what is the appropriate way to get this updated?

Hi @jrich523

If you wish to update the template you can create a MR in GitLab.org / GitLab · GitLab with your changes and follow the standard review process.

As a workaround you can also override it in your .gitlab-ci.yml.