{"id":37114758,"url":"https://github.com/yedamao/go_cmpp","last_synced_at":"2026-01-14T13:29:32.628Z","repository":{"id":50133268,"uuid":"137440357","full_name":"yedamao/go_cmpp","owner":"yedamao","description":"go_cmpp是为SP设计实现的CMPP2.0协议开发包和工具集","archived":false,"fork":false,"pushed_at":"2025-11-12T10:45:57.000Z","size":40,"stargazers_count":63,"open_issues_count":0,"forks_count":36,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-12T12:14:33.636Z","etag":null,"topics":["cmpp","sms"],"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/yedamao.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-06-15T04:19:25.000Z","updated_at":"2025-11-12T10:46:00.000Z","dependencies_parsed_at":"2024-06-18T22:39:54.358Z","dependency_job_id":"79a88ab8-6bab-432d-b923-6d5a52d0e2a8","html_url":"https://github.com/yedamao/go_cmpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yedamao/go_cmpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yedamao%2Fgo_cmpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yedamao%2Fgo_cmpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yedamao%2Fgo_cmpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yedamao%2Fgo_cmpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yedamao","download_url":"https://codeload.github.com/yedamao/go_cmpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yedamao%2Fgo_cmpp/sbom","scorecard":{"id":1239690,"data":{"date":"2025-11-03","repo":{"name":"github.com/yedamao/go_cmpp","commit":"f3241c60b6b7948ad61bcba7b0d51daed949ca01"},"scorecard":{"version":"v5.3.1-0.20251106164954-c65a663bf4a9","commit":"c65a663bf4a93c0f6eca32e6d34713d3e3440e11"},"score":3.9,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/19 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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#maintained"}},{"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/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/yedamao/go_cmpp/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/yedamao/go_cmpp/build.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned 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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#pinned-dependencies"}},{"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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#binary-artifacts"}},{"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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md","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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/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 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c65a663bf4a93c0f6eca32e6d34713d3e3440e11/docs/checks.md#sast"}}]},"last_synced_at":"2025-11-12T12:15:34.304Z","repository_id":50133268,"created_at":"2025-11-12T12:15:34.312Z","updated_at":"2025-11-12T12:15:34.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["cmpp","sms"],"created_at":"2026-01-14T13:29:32.023Z","updated_at":"2026-01-14T13:29:32.613Z","avatar_url":"https://github.com/yedamao.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go_cmpp\n[![Build Status](https://github.com/yedamao/go_cmpp/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/yedamao/go_cmpp/actions/workflows/build.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/yedamao/go_cmpp)](https://goreportcard.com/report/github.com/yedamao/go_cmpp)\n[![codecov](https://codecov.io/gh/yedamao/go_cmpp/branch/master/graph/badge.svg)](https://codecov.io/gh/yedamao/go_cmpp)\n\n\ngo_cmpp是为SP设计实现的CMPP2.0协议开发工具包。包括cmpp协议包和命令行工具。\n\n## 安装\n```\ngo get github.com/yedamao/go_cmpp/...\ncd $GOPATH/src/github.com/yedamao/go_cmpp \u0026\u0026 make\n```\n\n## Cmpp协议包\n\n### 支持操作\n- [x] CMPP_CONNECT\n- [x] CMPP_TERMINATE\n- [x] CMPP_TERMINATE_RESP\n- [x] CMPP_SUBMIT\n- [x] CMPP_QUERY\n- [x] CMPP_DELIVER_RESP\n- [x] CMPP_CANCEL\n- [x] CMPP_ACTIVE_TEST\n- [x] CMPP_ACTIVE_TEST_RESP\n\n### Example\n参照cmd/transmitter/main.go, cmd/receiver/main.go\n\n## 命令行工具\n\n### mockserver\nISMG短信网关模拟器\n\n```\nUsage of ./bin/mockserver:\n  -activeTest\n        是否activeTest\n  -addr string\n        addr(本地监听地址) (default \":7890\")\n  -mo\n        是否模拟上行短信\n  -rpt\n        是否模拟上行状态报告\n```\n\n### transmitter\n提交单条短信至短信网关\n\n```\nUsage of ./bin/transmitter:\n  -addr string\n        smgw addr(运营商地址) (default \":7890\")\n  -dest-number string\n        接收手机号码, 86..., 多个使用，分割\n  -msg string\n        短信内容\n  -secret string\n        登陆密码\n  -serviceId string\n        业务类型，是数字、字母和符号的组合\n  -sourceAddr string\n        源地址，即SP的企业代码\n  -srcId string\n        SP的接入号码\n```\n\n### receiver\n接收运营商回执状态/上行短信\n\n```\nUsage of ./bin/receiver:\n  -addr string\n        smgw addr(运营商地址) (default \":7890\")\n  -secret string\n        登陆密码\n  -sourceAddr string\n        源地址，即SP的企业代码\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyedamao%2Fgo_cmpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyedamao%2Fgo_cmpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyedamao%2Fgo_cmpp/lists"}