{"id":15684397,"url":"https://github.com/syucream/avro-protobuf","last_synced_at":"2026-03-06T15:02:08.945Z","repository":{"id":57514561,"uuid":"199485932","full_name":"syucream/avro-protobuf","owner":"syucream","description":"avro-protobuf in Go","archived":false,"fork":false,"pushed_at":"2020-05-26T16:39:36.000Z","size":30,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T05:48:10.354Z","etag":null,"topics":["avro","avro-protobuf","protobuf","protoc-plugin","protocol-buffers"],"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/syucream.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}},"created_at":"2019-07-29T16:07:18.000Z","updated_at":"2023-07-17T05:20:26.000Z","dependencies_parsed_at":"2022-09-06T03:02:05.435Z","dependency_job_id":null,"html_url":"https://github.com/syucream/avro-protobuf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syucream/avro-protobuf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2Favro-protobuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2Favro-protobuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2Favro-protobuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2Favro-protobuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syucream","download_url":"https://codeload.github.com/syucream/avro-protobuf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2Favro-protobuf/sbom","scorecard":{"id":864018,"data":{"date":"2025-08-18","repo":{"name":"github.com/syucream/avro-protobuf","commit":"3f6d739d6aa116df041a0502669ac40673adcecc"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3.3,"checks":[{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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: no topLevel permission defined: .github/workflows/goreleaser.yml: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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/syucream/avro-protobuf/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/syucream/avro-protobuf/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/syucream/avro-protobuf/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/syucream/avro-protobuf/goreleaser.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/syucream/avro-protobuf/goreleaser.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/syucream/avro-protobuf/goreleaser.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:29","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   1 out of   1 goCommand 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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/syucream/avro-protobuf/releases/26908708","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/syucream/avro-protobuf/releases/26908708"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T02:11:14.970Z","repository_id":57514561,"created_at":"2025-08-24T02:11:14.970Z","updated_at":"2025-08-24T02:11:14.970Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30182686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["avro","avro-protobuf","protobuf","protoc-plugin","protocol-buffers"],"created_at":"2024-10-03T17:16:04.896Z","updated_at":"2026-03-06T15:02:08.930Z","avatar_url":"https://github.com/syucream.png","language":"Go","readme":"# avro-protobuf\n\n![Go](https://github.com/syucream/avro-protobuf/workflows/Go/badge.svg)\n\nA schema and value conversion module and CLI tools in Go, like [avro-protobuf](https://avro.apache.org/docs/1.8.2/api/java/org/apache/avro/protobuf/package-summary.html).\n\nIt bundles protobuf \u003c-\u003e avro schema conversions, record value conversions, SerDe and protoc plugin.\n\n## Supported conversions\n\n### schema\n\n- protobuf descriptors -\u003e Avro schema\n  - supported\n- Avro schema -\u003e protobuf descriptors\n  - not yet\n  \n### value\n\n- protobuf value -\u003e Avro bytes\n  - partially\n- Avro bytes -\u003e protobuf value\n  - not yet\n- protobuf bytes -\u003e Avro value\n  - not yet\n- Avro value -\u003e protobuf bytes\n  - partially\n  \n## Usage\n\n### protobuf value \u003c-\u003e Avro bytes\n\n```go\n    msg := \u0026your_proto_message{}\n\n    serDe, err := serde.NewSerDe(msg)\n    if err != nil {\n        t.Error(err)\n    }\n\n    bin, err = serDe.Serialize(msg)\n    if err != nil {\n        t.Error(err)\n    }\n    // Got avro bytes!\n    \n    msg2 := \u0026your_proto_message{}\n    err = serDe.Deserialize(bin, msg2)\n    if err != nil {\n        t.Error(err)\n    }\n    // Got protobuf struct value!\n```\n\n### protobuf bytes \u003c-\u003e Avro value\n\n- TODO\n\n## protoc-gen-avro\n\nIt's a subproject of the avro-protobuf. It's a protoc plugin read .proto files and generate .avsc files.\nYou can get a binary of the plugin at the release page of this GitHub repo, or `go get`\n\n```sh\n$ go get -u github.com/syucream/avro-protobuf/tree/master/cmd/protoc-gen-avro\n```\n\nIt works as a protoc plugin, like:\n\n```sh\n$ cat proto/com/syucream/example/simple.proto\n// https://developers.google.com/protocol-buffers/docs/proto3#simple\n\nsyntax = \"proto3\";\n\nmessage SearchRequest {\n    string query = 1;\n    int32 page_number = 2;\n    int32 result_per_page = 3;\n \n$ protoc --plugin=./protoc-gen-avro --avro_out=./gen proto/com/syucream/example/simple.proto\n\n$ cat gen/SearchRequest.avsc\n{\n  \"fields\": [\n    {\n      \"default\": \"\",\n      \"name\": \"query\",\n      \"type\": \"string\"\n    },\n    {\n      \"default\": 0,\n      \"name\": \"page_number\",\n      \"type\": \"int\"\n    },\n    {\n      \"default\": 0,\n      \"name\": \"result_per_page\",\n      \"type\": \"int\"\n    }\n  ],\n  \"name\": \"SearchRequest\",\n  \"namespace\": \"google.protobuf\",\n  \"type\": \"record\"\n}\n```\n\n## references\n\n- [goavro](https://github.com/linkedin/goavro)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyucream%2Favro-protobuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyucream%2Favro-protobuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyucream%2Favro-protobuf/lists"}