{"id":37174343,"url":"https://github.com/cloverzrg/wechat-work-message-push-go","last_synced_at":"2026-01-14T20:22:29.991Z","repository":{"id":57521898,"uuid":"158783229","full_name":"cloverzrg/wechat-work-message-push-go","owner":"cloverzrg","description":"企业微信消息推送,支持grafana webhook通知","archived":false,"fork":false,"pushed_at":"2025-11-20T10:08:25.000Z","size":1297,"stargazers_count":39,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T12:08:20.177Z","etag":null,"topics":["grafana-notifications","grafana-webhook","wechat","wechat-work"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloverzrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-23T05:06:49.000Z","updated_at":"2025-11-20T10:08:22.000Z","dependencies_parsed_at":"2023-12-03T16:23:52.344Z","dependency_job_id":"fd52687f-71b9-4d08-9ff2-0dac56daf96d","html_url":"https://github.com/cloverzrg/wechat-work-message-push-go","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cloverzrg/wechat-work-message-push-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloverzrg%2Fwechat-work-message-push-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloverzrg%2Fwechat-work-message-push-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloverzrg%2Fwechat-work-message-push-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloverzrg%2Fwechat-work-message-push-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloverzrg","download_url":"https://codeload.github.com/cloverzrg/wechat-work-message-push-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloverzrg%2Fwechat-work-message-push-go/sbom","scorecard":{"id":293485,"data":{"date":"2025-08-11","repo":{"name":"github.com/cloverzrg/wechat-work-message-push-go","commit":"a8e4fcbf0f52bf2613cb2123db8f4695d74690db"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/19 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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:17: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   0 out of   2 containerImage 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":"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":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/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 11 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-17T18:53:59.497Z","repository_id":57521898,"created_at":"2025-08-17T18:53:59.497Z","updated_at":"2025-08-17T18:53:59.497Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","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":["grafana-notifications","grafana-webhook","wechat","wechat-work"],"created_at":"2026-01-14T20:22:29.238Z","updated_at":"2026-01-14T20:22:29.977Z","avatar_url":"https://github.com/cloverzrg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wechat-work-message-push-go\n[![Build Status](http://drone.jeongen.com/api/badges/cloverzrg/wechat-work-message-push-go/status.svg)](http://drone.jeongen.com/cloverzrg/wechat-work-message-push-go)\n[![](https://img.shields.io/microbadger/image-size/cloverzrg/wechat-work-message-push-go.svg)](https://hub.docker.com/r/cloverzrg/wechat-work-message-push-go/)\n\n### 部署\n- 镜像(支持 AMD64、ARM)  \n  https://hub.docker.com/r/cloverzrg/wechat-work-message-push-go\n  \n- docker compose  \n```\nservices:\n  wechat-work-message-push-go:\n    image: cloverzrg/wechat-work-message-push-go\n    container_name: wechat-work-message-push-go\n    environment:\n      TZ: Asia/Shanghai\n      Token:\n      DefaultReceiverUserId:\n      WechatWorkCorpId:\n      WechatWorkCorpSecret:\n      WechatWorkAgentId:\n    ports:\n      - 51234:80\n    restart: always\n    network_mode: bridge\n```\n\n### 使用：\n1.创建企业号（200人以下不需要认证），获取企业ID `WechatWorkCorpId` [https://work.weixin.qq.com/wework_admin/frame#profile](https://work.weixin.qq.com/wework_admin/frame#profile)\n\n2.创建自建应用，用用管理页面获取 `WechatWorkAgentId` 和 `WechatWorkCorpSecret`\n\n3.到通讯录查看自己的账号，获取 `DefaultReceiverUserId` \n\n3.复制 docker-compose.yaml 到本地，编辑文件，补充以上环境变量和随机字符串token,然后执行\n```shell\ndocker-compose up -d\n```\n\n4.到 企业微信-\u003e我的企业-\u003e微信插件，扫二维码关注企业微信 https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin\n\n5.发送以下请求\n```shell\ncurl -X POST \\\n  http://127.0.0.1:60009/push \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -H 'token: your_token' \\\n  -d 'message=1234'\n```\n\n6.刚才在微信上的关注的微工作台应收到第五步发送的消息\n![](https://github.com/cloverzrg/wechat-work-message-push-go/raw/master/image/IMG_8017.jpg)\n\n\n7.grafana 报警通知功能\n设置GrafanaWebhookUser和GrafanaWebhookPassword两个环境变量就可以用了\n![](https://github.com/cloverzrg/wechat-work-message-push-go/raw/master/image/grafana_webhook.png)\n\n\n8. 代替Telegram的通知连接  \n   比如nezha面板的通知，可以设置为\n   GET https://xx/push/push?token=xxx\u0026message=#NEZHA#\n\n### 开发\n\n#### 使用 drone 构建镜像\n\nhttps://drone.io/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloverzrg%2Fwechat-work-message-push-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloverzrg%2Fwechat-work-message-push-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloverzrg%2Fwechat-work-message-push-go/lists"}