Environment Variables need to be expanded before checking if valid option in component inputs
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=438723) </details> <!--IssueSummary end--> ## Problem When a user defines an input with options, e.g.: ```yaml spec: inputs: a: options: - foo - bar ``` and when setting it to the value of a variable, e.g.: ```yaml include: - component: ... inputs: a: $VALUE_OF_A ``` it fails because the literal value `$VALUE_OF_A` is not a valid option - that is, neither `foo` nor `bar`. Even if `VALUE_OF_A=foo`.
issue