{"id":17005879,"url":"https://github.com/devatherock/drone-yaml-validator","last_synced_at":"2025-03-22T16:30:52.779Z","repository":{"id":37034905,"uuid":"150049547","full_name":"devatherock/drone-yaml-validator","owner":"devatherock","description":"CI plugin to validate yaml files","archived":false,"fork":false,"pushed_at":"2025-02-15T14:28:55.000Z","size":371,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T13:32:23.763Z","etag":null,"topics":["ci","ci-cd","ci-plugin","circleci","docker","drone-ci","plugin","vela","yaml","yaml-validator","yml"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devatherock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T03:27:53.000Z","updated_at":"2025-01-18T17:05:29.000Z","dependencies_parsed_at":"2024-01-27T02:32:51.918Z","dependency_job_id":"ddcbd96e-89bc-4494-927e-e050e06b3fb0","html_url":"https://github.com/devatherock/drone-yaml-validator","commit_stats":{"total_commits":243,"total_committers":5,"mean_commits":48.6,"dds":"0.49382716049382713","last_synced_commit":"d52d4be2fa9ae3cd07adbbb5132e39f712469f99"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fdrone-yaml-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fdrone-yaml-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fdrone-yaml-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devatherock%2Fdrone-yaml-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devatherock","download_url":"https://codeload.github.com/devatherock/drone-yaml-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986376,"owners_count":20543004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","ci-cd","ci-plugin","circleci","docker","drone-ci","plugin","vela","yaml","yaml-validator","yml"],"created_at":"2024-10-14T05:04:23.645Z","updated_at":"2025-03-22T16:30:52.447Z","avatar_url":"https://github.com/devatherock.png","language":"Groovy","readme":"[![CircleCI](https://circleci.com/gh/devatherock/drone-yaml-validator.svg?style=svg)](https://circleci.com/gh/devatherock/drone-yaml-validator)\n[![Version](https://img.shields.io/docker/v/devatherock/drone-yaml-validator?sort=semver)](https://hub.docker.com/r/devatherock/drone-yaml-validator/)\n[![Coverage Status](https://coveralls.io/repos/github/devatherock/drone-yaml-validator/badge.svg?branch=master)](https://coveralls.io/github/devatherock/drone-yaml-validator?branch=master)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/eee25e47d4104a20894d2a0f8f35d2fd)](https://www.codacy.com/gh/devatherock/drone-yaml-validator/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=devatherock/drone-yaml-validator\u0026amp;utm_campaign=Badge_Grade)\n[![Docker Pulls - Drone](https://img.shields.io/docker/pulls/devatherock/drone-yaml-validator.svg)](https://hub.docker.com/r/devatherock/drone-yaml-validator/)\n[![Docker Image Size](https://img.shields.io/docker/image-size/devatherock/drone-yaml-validator.svg?sort=date)](https://hub.docker.com/r/devatherock/drone-yaml-validator/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n# yaml-validator\nCI plugin to validate yaml files\n\n## Usage\n### Docker\n\n```shell script\ndocker run --rm \\\n  -e PLUGIN_DEBUG=true \\\n  -v path/to/yamls:/work \\\n  -w /work \\\n  devatherock/drone-yaml-validator:latest\n```\n\n### CI\nThe following parameters can be set to configure the plugin.\n\n*   **debug** - Flag to enable debug logs. Optional, by default, debug logs are disabled\n\n*   **continue_on_error** - Flag to indicate if processing should continue when an invalid file is encountered. Optional,\n    defaults to true\n\n*   **search_path** - If specified, only YAMLs present in this path will be validated\n\n*   **allow_duplicate_keys** - Flag to indicate if YAML files with duplicate keys should be considered valid. Optional,\n    defaults to false\n\n*   **ignore_unknown_tags** - Flag to indicate if YAML files with unknown tags should be considered valid. Optional,\n    defaults to true\n\n#### vela\n\n```yaml\nsteps:\n  - name: yaml_validator\n    ruleset:\n      branch: master\n      event: push\n    image: devatherock/drone-yaml-validator:latest\n    parameters:\n      debug: false\n      continue_on_error: true\n      allow_duplicate_keys: false\n      ignore_unknown_tags: true\n```\n\n#### drone\n\n```yaml\nsteps:\n  - name: yaml_validator\n    image: devatherock/drone-yaml-validator:latest\n    settings:\n      debug: false\n      continue_on_error: true\n      allow_duplicate_keys: false\n      ignore_unknown_tags: true\n```\n\n#### CircleCI\n\n```yaml\nversion: 2.1\njobs:\n  validate_yamls:\n    docker:\n      - image: devatherock/drone-yaml-validator:latest\n    working_directory: ~/my-repo\n    environment:\n      PARAMETER_DEBUG: false\n      PARAMETER_CONTINUE_ON_ERROR: true\n      PARAMETER_ALLOW_DUPLICATE_KEYS: false\n      PARAMETER_IGNORE_UNKNOWN_TAGS: true\n    steps:\n      - checkout\n      - run: sh /scripts/entry-point.sh\n```\n\n## Tests\nTo test the latest plugin image, run the below command\n\n```shell\nmake functional-test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatherock%2Fdrone-yaml-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevatherock%2Fdrone-yaml-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatherock%2Fdrone-yaml-validator/lists"}