{"id":44450848,"url":"https://github.com/sters/yaml-diff","last_synced_at":"2026-02-12T16:33:19.636Z","repository":{"id":39718014,"uuid":"275716876","full_name":"sters/yaml-diff","owner":"sters","description":"Make a diff between 2 yaml files.","archived":false,"fork":false,"pushed_at":"2025-04-07T12:58:36.000Z","size":398,"stargazers_count":38,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T13:41:12.603Z","etag":null,"topics":["diff","golang","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sters.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":"2020-06-29T03:02:22.000Z","updated_at":"2025-04-07T12:58:39.000Z","dependencies_parsed_at":"2023-02-17T13:15:18.492Z","dependency_job_id":"6b6401ae-2d62-4962-a8bd-715df8e01222","html_url":"https://github.com/sters/yaml-diff","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/sters/yaml-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sters%2Fyaml-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sters%2Fyaml-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sters%2Fyaml-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sters%2Fyaml-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sters","download_url":"https://codeload.github.com/sters/yaml-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sters%2Fyaml-diff/sbom","scorecard":{"id":851968,"data":{"date":"2025-08-11","repo":{"name":"github.com/sters/yaml-diff","commit":"a295e1a77bbc2d155a9de8acc352f6b1e7fabc91"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","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":"Maintained","score":0,"reason":"1 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/go.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yml:12","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":"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/go.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sters/yaml-diff/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sters/yaml-diff/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/sters/yaml-diff/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sters/yaml-diff/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sters/yaml-diff/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/sters/yaml-diff/release.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction 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":"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":"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":"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:14"],"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.4.1 not signed: https://api.github.com/repos/sters/yaml-diff/releases/189096577","Warn: release artifact v1.4.0 not signed: https://api.github.com/repos/sters/yaml-diff/releases/189095758","Warn: release artifact v1.3.2 not signed: https://api.github.com/repos/sters/yaml-diff/releases/144373508","Warn: release artifact v1.3.1 not signed: https://api.github.com/repos/sters/yaml-diff/releases/119760400","Warn: release artifact v1.4.1 does not have provenance: https://api.github.com/repos/sters/yaml-diff/releases/189096577","Warn: release artifact v1.4.0 does not have provenance: https://api.github.com/repos/sters/yaml-diff/releases/189095758","Warn: release artifact v1.3.2 does not have provenance: https://api.github.com/repos/sters/yaml-diff/releases/144373508","Warn: release artifact v1.3.1 does not have provenance: https://api.github.com/repos/sters/yaml-diff/releases/119760400"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3787 / GHSA-fv92-fjc5-jj9h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T22:46:17.876Z","repository_id":39718014,"created_at":"2025-08-23T22:46:17.877Z","updated_at":"2025-08-23T22:46:17.877Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29372182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"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":["diff","golang","yaml"],"created_at":"2026-02-12T16:33:18.942Z","updated_at":"2026-02-12T16:33:19.631Z","avatar_url":"https://github.com/sters.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaml-diff\n\n[![go](https://github.com/sters/yaml-diff/workflows/Go/badge.svg)](https://github.com/sters/yaml-diff/actions?query=workflow%3AGo)\n[![codecov](https://codecov.io/gh/sters/yaml-diff/branch/main/graph/badge.svg)](https://codecov.io/gh/sters/yaml-diff)\n[![go-report](https://goreportcard.com/badge/github.com/sters/yaml-diff)](https://goreportcard.com/report/github.com/sters/yaml-diff)\n\n## Deprecated\n\nI'm no longer maintein this repo. Instead, I'm creating an another tool which is more generic version of yaml-diff. Please see this repo.\n\nhttps://github.com/sters/diffnest\n\n---\n\n## Usage\n\n```\ngo install github.com/sters/yaml-diff/cmd/yaml-diff@latest\n```\nor download from [Releases](https://github.com/sters/yaml-diff/releases).\n\n```\nyaml-diff path/to/foo.yaml path/to/bar.yaml\n```\n\nIf the given yaml has a [`---` separated structure](https://yaml.org/spec/1.2.2/#22-structures), then the two yaml's will get all the differences in their respective structures. The one with the smallest difference is considered to be the same structure and the difference is displayed.\n\nThe result structure is the same as based or target yaml but format (includes map fields order) is different.\n\n## Example\n\n\u003cdetails\u003e\u003csummary\u003eYou can try example directory.\u003c/summary\u003e\n\n```text\n$ go run cmd/yaml-diff/main.go example/a.yaml example/b.yaml\n--- example/a.yaml\n+++ example/b.yaml\n\n  apiVersion: \"v1\"\n  kind: \"Service\"\n  metadata:\n    name: \"my-service\"\n  spec:\n    selector:\n      app: \"MyApp\"\n    ports:\n      -\n        protocol: \"TCP\"\n-       port: 80\n+       port: 8080\n        targetPort: 9376\n\n  apiVersion: \"apps/v1\"\n  kind: \"Deployment\"\n  metadata:\n    name: \"app-deployment\"\n    labels:\n      app: \"MyApp\"\n  spec:\n-   replicas: 3\n+   replicas: 10\n    selector:\n      matchLabels:\n        app: \"MyApp\"\n    template:\n      metadata:\n        labels:\n          app: \"MyApp\"\n      spec:\n        containers:\n          -\n            name: \"app\"\n-           image: \"my-app:1.0.0\"\n+           image: \"my-app:1.1.0\"\n            ports:\n              -\n                containerPort: 9376\n\n- foo: \"missing-in-b\"\n\n  this:\n    is:\n      the: \"same\"\n-     empty:\n\n+ bar:\n+   - \"missing in a.yaml\"\n\n+ baz:\n+   - \"missing in a.yaml\"\n```\n\n```text\n$ go run cmd/yaml-diff/main.go --ignore-empty-fields example/a.yaml example/b.yaml\n--- example/a.yaml\n+++ example/b.yaml\n\n  apiVersion: \"v1\"\n  kind: \"Service\"\n  metadata:\n    name: \"my-service\"\n  spec:\n    selector:\n      app: \"MyApp\"\n    ports:\n      -\n        protocol: \"TCP\"\n-       port: 80\n+       port: 8080\n        targetPort: 9376\n\n  apiVersion: \"apps/v1\"\n  kind: \"Deployment\"\n  metadata:\n    name: \"app-deployment\"\n    labels:\n      app: \"MyApp\"\n  spec:\n-   replicas: 3\n+   replicas: 10\n    selector:\n      matchLabels:\n        app: \"MyApp\"\n    template:\n      metadata:\n        labels:\n          app: \"MyApp\"\n      spec:\n        containers:\n          -\n            name: \"app\"\n-           image: \"my-app:1.0.0\"\n+           image: \"my-app:1.1.0\"\n            ports:\n              -\n                containerPort: 9376\n\n- foo: \"missing-in-b\"\n\n  this:\n    is:\n      the: \"same\"\n      empty:\n\n+ bar:\n+   - \"missing in a.yaml\"\n\n+ baz:\n+   - \"missing in a.yaml\"\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsters%2Fyaml-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsters%2Fyaml-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsters%2Fyaml-diff/lists"}