Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include template reports syntax issue #230

Open
MikeDabrowski opened this issue Jan 14, 2025 · 2 comments
Open

include template reports syntax issue #230

MikeDabrowski opened this issue Jan 14, 2025 · 2 comments

Comments

@MikeDabrowski
Copy link

We have this in our CI config:

include:
  - template: Jobs/Secret-Detection.latest.gitlab-ci.yml

The plugin reports

Missing required key(s): 'path' 

include: array | object | string
 
Will infer the method based on the value. E. g. `https://...` strings will be of type `include:remote`, and `/ templates/...` or `templates/...` will be of type `include:local`.

However single string in an array is supported as in https://docs.gitlab.com/ee/ci/yaml/includes.html

@Blarc
Copy link
Owner

Blarc commented Jan 20, 2025

Hey @MikeDabrowski,

if you mean the swiggly red line that appears like this:

Image

This is not the plugin's fault, but rather a json schema error. I've noticed this myself and am not sure why this happens, since I'm using the "official" gitlab ci json schema.

@MikeDabrowski
Copy link
Author

MikeDabrowski commented Jan 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants