feat(ci): add component context flags to ci lint command

Description

Issue: glab ci lint fails when validating CI/CD component templates that use $[[ component.* ]] interpolation syntax (introduced in GitLab 18.6).

Solution: Added 4 new CLI flags to allow users to provide component context values that get substituted before sending the YAML to the lint API:

New flags: --component-name, --component-version, --component-sha, --component-reference

glab ci lint templates/my-component.yml \
  --component-name=my-component \
  --component-version=1.0.0 \
  --component-sha=abc123 \
  --component-reference=gitlab.com/org/project/my-component@1.0.0

Resolves #8083

How has this been tested?

Unit tests for component context replacement logic

Integration tests for lint command with new flags

All existing tests pass

Screenshots (if appropriate):

Edited by Swapnaneel Patra

Merge request reports

Loading