{"id":25797209,"url":"https://github.com/carabiner-dev/osv","last_synced_at":"2026-02-21T16:39:52.202Z","repository":{"id":273960492,"uuid":"921407918","full_name":"carabiner-dev/osv","owner":"carabiner-dev","description":"Tools, libraries and protocol buffer definitions to work with the Open Source Vulnerabilities format (OSV).","archived":false,"fork":false,"pushed_at":"2025-01-24T01:21:20.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T21:52:35.700Z","etag":null,"topics":["osv","osv-schema","vulnerabilities"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carabiner-dev.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":"2025-01-23T22:24:57.000Z","updated_at":"2025-02-06T19:45:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f32601aa-ca29-4a65-9fec-7113f38f991e","html_url":"https://github.com/carabiner-dev/osv","commit_stats":null,"previous_names":["carabiner-dev/osv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carabiner-dev/osv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carabiner-dev%2Fosv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carabiner-dev%2Fosv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carabiner-dev%2Fosv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carabiner-dev%2Fosv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carabiner-dev","download_url":"https://codeload.github.com/carabiner-dev/osv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carabiner-dev%2Fosv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29686798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["osv","osv-schema","vulnerabilities"],"created_at":"2025-02-27T14:58:25.924Z","updated_at":"2026-02-21T16:39:52.197Z","avatar_url":"https://github.com/carabiner-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSV Tools and Protocol Buffer Definitions\n\nThis repository contains tools, libraries and protocol buffer definitions to work\nwith the [Open Source Vulnerabilities format](https://github.com/ossf/osv-schema).\n\n## Using the Libraries\n\nThis repository contains libraries to read OSV data generated from the protocol\nbuffer definitions. For now we are only generating go modules, read below if you\nneed others.\n\n### Go\n\nThe go module can be imported as:\n\n```\ngo get github.com/carabiner-dev/osv\n```\n\nThe main osv module maintains type aliases to all the major types defined in\nthe protocol buffers definition. This means that this:\n\n```golang\npackage main\n\nimport(\n    \"github.com/carabiner-dev/osv/go/osv\"\n)\nvar r = osv.Record{}\n```\n\nwill always give you a record of the latest support version. If you want a more\ndeterministic behavior, you can always use the versioned types:\n\n```golang\npackage main\n\nimport(\n    osv \"github.com/carabiner-dev/osv/go/osv/v1_6_7\"\n)\n\nvar r = osv.Record{} // This will always be a v1.6.7 record\n```\n\nThe main module offers a simple parser that can parse results sets:\n\n```golang\npackage main\n\nimport(\n    \"github.com/carabiner-dev/osv/go/osv\"\n)\n\nfunc main() {\n    f, err := os.Open(\"osv-data.json\")\n    if err != nil {\n        os.Exit(1)\n    }\n\n    // Create new parser\n    parser := osv.NewParser()\n\n    // Parse the OSV data\n    results, err := parse.ParseRestultsFromStream(f)\n}\n```\n\n### Other Languages\n\nThere are currently no plans to generate code for other languages but feel \nfree to file an issue or open a PR if you need them.\n\n## Regenerating the Code\n\nIf you want to regenerate the code from the protocol definition, the\nrepository has a buf configuration that takes care of storing and naming\nfiles.\n[Install the latest version of the `buf` CLI](https://buf.build/docs/installation/)\nand generate the libraries from the top of the repo:\n\n```\nbuf generate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarabiner-dev%2Fosv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarabiner-dev%2Fosv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarabiner-dev%2Fosv/lists"}