GitLab CI/CD Component fail with jobs specs config should implement a script: or a trigger: keyword

After a night of sleep, I figured out the error. Components heading should have spec (singular) instead of specs (plural).

The documentation has specs (plural) in some parts, for example CI/CD YAML syntax reference | GitLab

This was the source of my mistake.