Auto apply input doesn't make jobs run automatically

Summary

Latest version of validate-plan-apply component don't respect the auto_apply: true input, and will instead require manual run of apply on default branch.

Steps to reproduce

With a minimal .gitlab-ci.yml like this, trying to run pipeline on default branch

include:
  - component: gitlab.com/components/opentofu/validate-plan-apply@~latest
    inputs:
      version: latest
      opentofu_version: 1.6.1

      auto_apply: true

stages: [validate, build, deploy]

Example Project

What is the current bug behavior?

Apply job needs to be manually triggered, even though auto_apply is set to true.

What is the expected correct behavior?

Pipeline should pass without manual intervention.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Possible fixes

Changing version from latest to 0.38.0 fixes this.

Likely caused by this or this commit, as these are only two that touch upon the rules since the version 0.38.0