CI Lint API pipeline source?

How to enable linting against the CI Lint API in workflows?

We’re trying to lint our pipelines against the lint API.
However, our pipeline have Workflows that deduplicate branch and MR pipeline runs etc.
So the lint request returns a failure because the pipeline is filtered out by the Workflows.
We would like to change the Workflows to allow CI linting.

What do we allow as the $CI_PIPELINE_SOURCE to pass linting against the API?

GitLab Self-Managed, Premium, v16.2.4

  - if: '$CI_PIPELINE_SOURCE == "web"' # manual run from UI  
  - if: $CI_PIPELINE_SOURCE == "merge_request_event"
  - if: $CI_PIPELINE_SOURCE == "api"
  - if: $CI_COMMIT_TAG  
    when: never