Backend: API CI Lint returning 500 when including component

Summary

I encountered a 500 error while attempting to call the CI Lint API in GitLab to validate a CI file that includes component. The issue arises when trying to validate the CI file using the API, and it results in a server error response. Notably, the API was functioning correctly last week gitlab.com

Steps to reproduce

  1. Create a CI file containing an external component inclusion.
  2. Call the CI Lint API with the created CI file:
jq --null-input --arg yaml "$(<templates/file.yml)" '.content=$yaml' |curl https://gitlab.com/api/v4/projects/"$CI_PROJECT_ID"/ci/lint?content_ref=branch -s -X POST -H 'Content-Type: application/json' -H "PRIVATE-TOKEN: TOKEN" --data @-"

What is the current bug behavior?

that gives {"message":"500 Internal Server Error"}