{"id":15012978,"url":"https://github.com/lyubick/action-yaml-schema-validator","last_synced_at":"2026-02-05T08:01:19.873Z","repository":{"id":174715182,"uuid":"652652548","full_name":"lyubick/action-YAML-schema-validator","owner":"lyubick","description":"Action to validate YAML files against predefined JSON schema","archived":false,"fork":false,"pushed_at":"2024-08-06T11:10:35.000Z","size":61,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T22:35:10.711Z","etag":null,"topics":["actions","json","json-schema","json-validation","json-validator","jsonschema","jsonschema-validation","jsonschema-validator","python","python3","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lyubick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-06-12T14:12:22.000Z","updated_at":"2024-08-06T11:10:37.000Z","dependencies_parsed_at":"2023-11-15T11:43:09.316Z","dependency_job_id":"1dc7586b-c5db-4a62-9384-6fe2346281e6","html_url":"https://github.com/lyubick/action-YAML-schema-validator","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.024390243902439046","last_synced_commit":"9523b473e6cbcdbab22afe4d176e07853f68ee2e"},"previous_names":["lyubick/action-yaml-schema-validator"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lyubick/action-YAML-schema-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyubick%2Faction-YAML-schema-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyubick%2Faction-YAML-schema-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyubick%2Faction-YAML-schema-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyubick%2Faction-YAML-schema-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyubick","download_url":"https://codeload.github.com/lyubick/action-YAML-schema-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyubick%2Faction-YAML-schema-validator/sbom","scorecard":{"id":607620,"data":{"date":"2025-08-11","repo":{"name":"github.com/lyubick/action-YAML-schema-validator","commit":"9523b473e6cbcdbab22afe4d176e07853f68ee2e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/8 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/self-test.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/self-test.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/lyubick/action-YAML-schema-validator/self-test.yaml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.11-slim to python:3.11-slim@sha256:9e885f8239c31f8429448f933638dd13037c9119e2a362aeebdd37ec3bee7c85","Warn: pipCommand not pinned by hash: Dockerfile:8","Warn: pipCommand not pinned by hash: .github/workflows/self-test.yaml:15","Warn: pipCommand not pinned by hash: .github/workflows/self-test.yaml:16","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T01:57:11.344Z","repository_id":174715182,"created_at":"2025-08-21T01:57:11.344Z","updated_at":"2025-08-21T01:57:11.344Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29116450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","json","json-schema","json-validation","json-validator","jsonschema","jsonschema-validation","jsonschema-validator","python","python3","yaml"],"created_at":"2024-09-24T19:43:33.173Z","updated_at":"2026-02-05T08:01:19.850Z","avatar_url":"https://github.com/lyubick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YAML/JSON File(s) Validation against JSON Schema\n\n## Overview\nThis action can validate YAML or JSON files against provided JSON Schema. In case if provided file is in full compliance\nwith provided JSON Schema, action will exit gracefully, crash (unhandled exception) will occur otherwise.\n\nThe JSON Schema format used, should be in compliance with https://json-schema.org/. \n\n## Usage\nTo use action one can use code snippet below.\n```yaml\njobs:\n  my_cool_validation:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Check my YAML/JSON file with my JSON schema\n        id: validation\n        uses: lyubick/action-YAML-schema-validator@v2\n        with:\n          json-schema-file: path/to/my/cool/schema.json\n          yaml-json-file-dir: path/to/my/cool/yaml/file.yaml,path/to/my/cool/yaml/another/file.yaml\n          recursive: false\n          ignore-empty: false\n          schema-mapping: 'path/to/my/cool/yaml/file.yaml-\u003epath/to/my/cool/schema.json,path/to/my/cool/yaml/another/file.yaml-\u003ehttps://path/to/schema'\n```\nOne should provide two parameters:\n- `json-schema-file`, required, points to legit JSON Schema files. In case of mapping this schema will be used as default (fallback) schema. Can point to online schemas that can be obtained via http(s), without authorization.\n- `yaml-json-file-dir`, is a comma separated list that contains:\n  - Single YAML or JSON files\n  - Directories that will be parsed for `.yaml` or `.yml` or `.json` files\n- `recursive`, optional, True/False depending on if recursive scan for YAML or JSON files in directory required. Default is False.\n- `ignore-empty`, optional, True/False depends if one want to cause failure on empty files or not, default is True.\n- `schema-mapping`, optional, one can provide file-to-schema mapping, if specific files require specific schema.\n\n## Results\n### Success\nIn case of success action will end gracefully (exit code 0).\n\n### Failure\nIn case of failure action will end with crash (unhandled exception), like on example below:\n```text\nFile `invalid/yaml/file/here.yaml` failed validation with \u003e\u003e\u003e`failure reason here`\u003c\u003c\u003c\n\nTraceback ...\n```\n\n## Examples\n### JSON Schema\n```json\n{\n  \"title\": \"SampleJSONSchema\",\n  \"description\": \"Just a sample and very simple JSON Schema\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"properties\": {\n    \"field1\": {\n      \"type\": \"string\"\n    }\n  }\n}\n```\n\n### Valid file (compliant with Schema)\n#### YAML\n```yaml\nfield1: Value1\n```\n#### JSON\n```json\n{\n  \"field1\": \"Value1\"\n}\n```\n\n### Invalid file (not compliant with Schema)\n#### YAML\n```yaml\nfield2: Value2\n```\n\n#### JSON\n```json\n{\n  \"field2\": \"Value1\"\n}\n```\n\nValidating this file will cause error (Exception) thus failing an action\n```text\nFailed validating 'additionalProperties' in schema:\n    {'additionalProperties': False,\n     'description': 'Just a sample and very simple JSON Schema',\n     'properties': {'field1': {'type': 'string'}},\n     'title': 'SampleJSONSchema',\n     'type': 'object'}\n\nOn instance:\n    {'field2': 'Value2'}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyubick%2Faction-yaml-schema-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyubick%2Faction-yaml-schema-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyubick%2Faction-yaml-schema-validator/lists"}