{"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"build":{"job":"","node":"v16.17.1","runner":""},"git":{"branch":"HEAD","commit":"a1c1a898b98f6cb2868cb485f5112b27080dd59c"},"package":{"name":"salty-dog","version":"0.9.2"},"msg":"version info","time":"2023-02-19T00:41:53.647Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"args":{"_":[],"config-path":["./docs"],"configPath":["./docs"],"config-name":"config-stderr.yml","configName":"config-stderr.yml","count":true,"c":true,"rules":["rules/gitlab-ci.yml"],"rule-file":["rules/gitlab-ci.yml"],"r":["rules/gitlab-ci.yml"],"rule":["rules/gitlab-ci.yml"],"ruleFile":["rules/gitlab-ci.yml"],"tag":["gitlab"],"include-tag":["gitlab"],"t":["gitlab"],"includeTag":["gitlab"],"source":"./test/examples/gitlab-ci-some.yml","s":"./test/examples/gitlab-ci-some.yml","dest":"-","d":"-","destination":"-","exclude-level":[],"excludeLevel":[],"exclude-name":[],"excludeName":[],"exclude-tag":[],"excludeTag":[],"format":"yaml","f":"yaml","include-level":[],"l":[],"level":[],"includeLevel":[],"include-name":[],"n":[],"name":[],"includeName":[],"reporter":"summary","report":"summary","rule-module":[],"m":[],"ruleModule":[],"rule-path":[],"p":[],"rulePath":[],"$0":"out/src/index.js"},"mode":"check","msg":"main arguments","time":"2023-02-19T00:41:53.648Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"schema":{"log-level":{"type":"string","enum":["debug","info","warn","error"]},"config-logger":{"type":"object","required":["level","name"],"properties":{"level":{"$ref":"salty-dog-meta#/definitions/log-level"},"name":{"type":"string"},"streams":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object"}]}}}},"config":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["logger"],"properties":{"logger":{"$ref":"salty-dog-meta#/definitions/config-logger"}}}}},"name-safe":{"type":"string","pattern":"[-a-z0-9]+"},"name-tag":{"type":"string","pattern":"[-:a-z0-9]+"},"rule":{"type":"object","additionalProperties":false,"required":["name","desc","level","tags","check"],"properties":{"name":{"$ref":"salty-dog-meta#/definitions/name-safe"},"desc":{"type":"string","maxLength":255},"level":{"$ref":"salty-dog-meta#/definitions/log-level"},"tags":{"type":"array","items":{"$ref":"salty-dog-meta#/definitions/name-tag"}},"select":{"type":"string","default":"$","minLength":1},"filter":{"$ref":"http://json-schema.org/draft-07/schema#"},"check":{"$ref":"http://json-schema.org/draft-07/schema#"}}},"source":{"type":"object","required":["name","rules"],"properties":{"name":{"$ref":"salty-dog-meta#/definitions/name-safe"},"definitions":{"type":"object","additionalProperties":false,"patternProperties":{"[-a-z]+":{"type":"object"}}},"rules":{"type":"array","items":{"$ref":"salty-dog-meta#/definitions/rule"}}}}},"schemaName":"salty-dog-meta","msg":"adding ajv schema","time":"2023-02-19T00:41:53.686Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"schema":{"log-level":{"type":"string","enum":["debug","info","warn","error"]},"config-logger":{"type":"object","required":["level","name"],"properties":{"level":{"$ref":"salty-dog-meta#/definitions/log-level"},"name":{"type":"string"},"streams":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object"}]}}}},"config":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["logger"],"properties":{"logger":{"$ref":"salty-dog-meta#/definitions/config-logger"}}}}},"name-safe":{"type":"string","pattern":"[-a-z0-9]+"},"name-tag":{"type":"string","pattern":"[-:a-z0-9]+"},"rule":{"type":"object","additionalProperties":false,"required":["name","desc","level","tags","check"],"properties":{"name":{"$ref":"salty-dog-meta#/definitions/name-safe"},"desc":{"type":"string","maxLength":255},"level":{"$ref":"salty-dog-meta#/definitions/log-level"},"tags":{"type":"array","items":{"$ref":"salty-dog-meta#/definitions/name-tag"}},"select":{"type":"string","default":"$","minLength":1},"filter":{"$ref":"http://json-schema.org/draft-07/schema#"},"check":{"$ref":"http://json-schema.org/draft-07/schema#"}}},"source":{"type":"object","required":["name","rules"],"properties":{"name":{"$ref":"salty-dog-meta#/definitions/name-safe"},"definitions":{"type":"object","additionalProperties":false,"patternProperties":{"[-a-z]+":{"type":"object"}}},"rules":{"type":"array","items":{"$ref":"salty-dog-meta#/definitions/rule"}}}}},"schemaName":"salty-dog-meta","msg":"adding ajv schema","time":"2023-02-19T00:41:53.784Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.857Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"should specify stages","level":"info","name":"gitlab-stages","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","required":["stages"],"properties":{"stages":{"type":"array","items":{"type":"string"}}}}},"msg":"visiting node","time":"2023-02-19T00:41:53.857Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.858Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"rule":"gitlab-stages","msg":"rule passed","time":"2023-02-19T00:41:53.906Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.906Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"template jobs should set the stage","level":"info","name":"gitlab-job-template","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","patternProperties":{"\\..+":{"type":"object","required":["stage"],"properties":{"stage":{"type":"string"}}}}}},"msg":"visiting node","time":"2023-02-19T00:41:53.906Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.906Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"rule":"gitlab-job-template","msg":"rule passed","time":"2023-02-19T00:41:53.908Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.908Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"jobs must have a script","level":"info","name":"gitlab-job-script","select":"$","tags":["gitlab","important"],"checkSchema":{"type":"object","properties":{"after_script":{"type":"array"},"before_script":{"type":"array"},"cache":{"type":"object"},"image":{"type":"string"},"include":{"type":"array"},"services":{"type":"array"},"stages":{"type":"array"},"types":{"type":"array"},"variables":{"type":"object"}},"additionalProperties":{"type":"object","required":["script"],"properties":{"after_script":{"type":"array","items":{"type":"string"}},"before_script":{"type":"array","items":{"type":"string"}},"script":{"type":"array","items":{"type":"string"}}}}}},"msg":"visiting node","time":"2023-02-19T00:41:53.908Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.909Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"rule":"gitlab-job-script","msg":"rule passed","time":"2023-02-19T00:41:53.914Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.914Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"should only have includes and stages at the top level","level":"info","name":"gitlab-top-level","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","allOf":[{"properties":{"include":{"type":"array","items":{"type":"object"}},"stages":{"type":"array","items":{"type":"string"}}}},{"not":{"anyOf":[{"required":["image"]},{"required":["services"]},{"required":["types"]},{"required":["before_script"]},{"required":["after_script"]},{"required":["variables"]},{"required":["cache"]}]}}]}},"msg":"visiting node","time":"2023-02-19T00:41:53.914Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.915Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":40,"count":1,"rule":{"desc":"should only have includes and stages at the top level","level":"info","name":"gitlab-top-level","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","allOf":[{"properties":{"include":{"type":"array","items":{"type":"object"}},"stages":{"type":"array","items":{"type":"string"}}}},{"not":{"anyOf":[{"required":["image"]},{"required":["services"]},{"required":["types"]},{"required":["before_script"]},{"required":["after_script"]},{"required":["variables"]},{"required":["cache"]}]}}]}},"msg":"rule failed","time":"2023-02-19T00:41:53.920Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.920Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"should specify stages","level":"info","name":"gitlab-stages","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","required":["stages"],"properties":{"stages":{"type":"array","items":{"type":"string"}}}}},"msg":"visiting node","time":"2023-02-19T00:41:53.920Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"rule":"gitlab-stages","msg":"rule passed","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"template jobs should set the stage","level":"info","name":"gitlab-job-template","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","patternProperties":{"\\..+":{"type":"object","required":["stage"],"properties":{"stage":{"type":"string"}}}}}},"msg":"visiting node","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"rule":"gitlab-job-template","msg":"rule passed","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.921Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"jobs must have a script","level":"info","name":"gitlab-job-script","select":"$","tags":["gitlab","important"],"checkSchema":{"type":"object","properties":{"after_script":{"type":"array"},"before_script":{"type":"array"},"cache":{"type":"object"},"image":{"type":"string"},"include":{"type":"array"},"services":{"type":"array"},"stages":{"type":"array"},"types":{"type":"array"},"variables":{"type":"object"}},"additionalProperties":{"type":"object","required":["script"],"properties":{"after_script":{"type":"array","items":{"type":"string"}},"before_script":{"type":"array","items":{"type":"string"}},"script":{"type":"array","items":{"type":"string"}}}}}},"msg":"visiting node","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":40,"count":1,"rule":{"desc":"jobs must have a script","level":"info","name":"gitlab-job-script","select":"$","tags":["gitlab","important"],"checkSchema":{"type":"object","properties":{"after_script":{"type":"array"},"before_script":{"type":"array"},"cache":{"type":"object"},"image":{"type":"string"},"include":{"type":"array"},"services":{"type":"array"},"stages":{"type":"array"},"types":{"type":"array"},"variables":{"type":"object"}},"additionalProperties":{"type":"object","required":["script"],"properties":{"after_script":{"type":"array","items":{"type":"string"}},"before_script":{"type":"array","items":{"type":"string"}},"script":{"type":"array","items":{"type":"string"}}}}}},"msg":"rule failed","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"items":[{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}}],"path":"$","msg":"path query picked items","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"rule":{"desc":"should only have includes and stages at the top level","level":"info","name":"gitlab-top-level","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","allOf":[{"properties":{"include":{"type":"array","items":{"type":"object"}},"stages":{"type":"array","items":{"type":"string"}}}},{"not":{"anyOf":[{"required":["image"]},{"required":["services"]},{"required":["types"]},{"required":["before_script"]},{"required":["after_script"]},{"required":["variables"]},{"required":["cache"]}]}}]}},"msg":"visiting node","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":20,"item":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"msg":"checking item","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"rule":"gitlab-top-level","msg":"rule passed","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":30,"msg":"rule errors\ngitlab-top-level: 1\ngitlab-job-script: 1","time":"2023-02-19T00:41:53.922Z","v":0} {"name":"salty-dog","hostname":"runner-xsnpqmx-project-60-concurrent-167xdp","pid":446,"level":50,"count":2,"errors":[{"data":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"document":{"data":{"stages":["build","package"],"before_script":["echo \"this is a terrible idea!\""]},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"err":{"instancePath":"","schemaPath":"#/allOf/1/not","keyword":"not","params":{},"message":"must NOT be valid"},"level":"error","msg":" must NOT be valid at item 0 of $ for gitlab-top-level","rule":{"desc":"should only have includes and stages at the top level","level":"info","name":"gitlab-top-level","select":"$","tags":["gitlab","optional"],"checkSchema":{"type":"object","allOf":[{"properties":{"include":{"type":"array","items":{"type":"object"}},"stages":{"type":"array","items":{"type":"string"}}}},{"not":{"anyOf":[{"required":["image"]},{"required":["services"]},{"required":["types"]},{"required":["before_script"]},{"required":["after_script"]},{"required":["variables"]},{"required":["cache"]}]}}]}}},{"data":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"document":{"data":{"stages":["build","package"],"build-node":{"stage":"build","script":[]},"image-alpine":{"stage":"package"},"image-stretch":{"stage":"package","script":[]}},"source":{"data":"# test rules gitlab-ci\n# test tags gitlab\n# test exit-status 2\n\nstages:\n - build\n - package\n\nbefore_script:\n - echo \"this is a terrible idea!\"\n\n---\n\nstages:\n - build\n - package\n\nbuild-node:\n stage: build\n script: []\n\nimage-alpine:\n stage: package\n # missing script\n\nimage-stretch:\n stage: package\n script: []","path":"./test/examples/gitlab-ci-some.yml"}},"index":0},"err":{"instancePath":"/image-alpine","schemaPath":"#/additionalProperties/required","keyword":"required","params":{"missingProperty":"script"},"message":"must have required property 'script'"},"level":"error","msg":"/image-alpine must have required property 'script' at item 0 of $ for gitlab-job-script","rule":{"desc":"jobs must have a script","level":"info","name":"gitlab-job-script","select":"$","tags":["gitlab","important"],"checkSchema":{"type":"object","properties":{"after_script":{"type":"array"},"before_script":{"type":"array"},"cache":{"type":"object"},"image":{"type":"string"},"include":{"type":"array"},"services":{"type":"array"},"stages":{"type":"array"},"types":{"type":"array"},"variables":{"type":"object"}},"additionalProperties":{"type":"object","required":["script"],"properties":{"after_script":{"type":"array","items":{"type":"string"}},"before_script":{"type":"array","items":{"type":"string"}},"script":{"type":"array","items":{"type":"string"}}}}}}}],"msg":"some rules failed","time":"2023-02-19T00:41:53.922Z","v":0}