{"id":20330663,"url":"https://github.com/leafney/dingtalk-action","last_synced_at":"2026-06-01T06:31:30.850Z","repository":{"id":36955457,"uuid":"325968400","full_name":"leafney/dingtalk-action","owner":"leafney","description":"Github action for sending notifications to Dingtalk","archived":false,"fork":false,"pushed_at":"2023-02-27T09:15:43.000Z","size":360,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T19:06:37.178Z","etag":null,"topics":["dingtalk","github-action"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/leafney.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":"2021-01-01T11:43:45.000Z","updated_at":"2024-07-18T03:55:42.000Z","dependencies_parsed_at":"2024-11-17T22:30:24.944Z","dependency_job_id":null,"html_url":"https://github.com/leafney/dingtalk-action","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"54a346aef1805dea124ce9f294fbd44f6e7013ef"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"actions/javascript-action","purl":"pkg:github/leafney/dingtalk-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fdingtalk-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fdingtalk-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fdingtalk-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fdingtalk-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafney","download_url":"https://codeload.github.com/leafney/dingtalk-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fdingtalk-action/sbom","scorecard":{"id":581695,"data":{"date":"2025-08-11","repo":{"name":"github.com/leafney/dingtalk-action","commit":"54a346aef1805dea124ce9f294fbd44f6e7013ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.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/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/test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/leafney/dingtalk-action/test.yml/main?enable=pin","Info:   0 out of   1 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"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":"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":"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 'main'"],"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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-20T19:20:41.402Z","repository_id":36955457,"created_at":"2025-08-20T19:20:41.402Z","updated_at":"2025-08-20T19:20:41.402Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33763648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dingtalk","github-action"],"created_at":"2024-11-14T20:17:03.789Z","updated_at":"2026-06-01T06:31:30.822Z","avatar_url":"https://github.com/leafney.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dingtalk Robot Notify\n\nGithub actions for sending notifications to Dingtalk\n\n\n## General settings\n\n\n### Environment variable parameters\n\n- `DINGTALK_ACCESS_TOKEN` -- **Required** dingtalk access_token\n- `DINGTALK_SECRET` -- **Optional** dingtalk secret\n\n\n### Input parameters\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `msgtype` | string | No | `text` | dingtalk support message type of `text` `link` `markdown` `actionCard` `feedCard` |\n| `status` | string | No | `${{ job.status }}` | The current status of the job. Possible values are `success`, `failure`, or `cancelled`. |\n| `notify_when` | string | No | `success,failure,cancelled` | Specify on which events a dingtalk notification is sent, Multiple items are separated by commas |\n\n\n-----\n\n\n## text\n\n### Example usage\n\n```\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n\n    - uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        text: '测试--钉钉消息通知测试'\n\n    - uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: text\n        text: '测试--钉钉消息 @15311112222 通知 @15233334444 测试'\n        at_mobiles: '15311112222,15233334444'\n```\n\n### Options\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `text` | string | Yes | `'This is the default content'` | Message content |\n| `at_mobiles` | string | No | `''` | The phone number of the @person (add the phone number of the @person in the content) |\n| `at_all` | bool | No | `false` | Do you @everyone |\n\n\n-----\n\n\n## link\n\n### Example usage\n\n```\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: link\n        title: '这是一个链接通知'\n        text: '测试--钉钉消息测试，链接通知'\n        msg_url: 'https://github.com/'\n```\n\n### Options\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `title` | string | Yes | `'This is the default title'` | Message title |\n| `text` | string | Yes | `'This is the default content'` | Message content |\n| `msg_url` | string | Yes | `'https://github.com/leafney/dingtalk-action'` | Click on the URL of the message jump |\n| `pic_url` | string | No | `''` | the URL of image |\n\n\n-----\n\n## markdown\n\n\n### Example usage\n\n```\njobs:\n  success-notify:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - run: exit 0\n    - name: success notify\n      uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: markdown\n        notify_when: 'success'\n        title: '代码测试通过'\n        text: |\n          **\u003cfont color=#00FF00 size=4\u003e构建成功\u003c/font\u003e**\n\n          ### GitHub Action workflow **${{ github.workflow }}** 构建成功\n\n  failure-notify:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - run: exit 1\n    - name: failure notify\n      uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: markdown\n        notify_when: 'failure'\n        title: '代码测试发现异常'\n        text: |\n          **\u003cfont color=#FF0000 size=4\u003e构建失败\u003c/font\u003e**\n\n          ### GitHub Action workflow **${{ github.workflow }}** 构建失败\n\n          - 问题一\n          - 问题二\n          - 问题三\n```\n\n### Options\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `title` | string | Yes | `'This is the default title'` | Message title |\n| `text` | string | Yes | `'This is the default content'` | Message content |\n| `at_mobiles` | string | No | `''` | The phone number of the @person (add the phone number of the @person in the content) |\n| `at_all` | bool | No | `false` | Do you @everyone |\n\n\n-----\n\n\n## actionCard\n\n\n### Overall jump ActionCard\n\n#### Example usage\n\n```\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: actionCard\n        title: '整体跳转的actionCard测试'\n        text: '测试--钉钉消息通知测试'\n        single_title: '阅读原文'\n```\n\n#### Options\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `title` | string | Yes | `'This is the default title'` | Message title |\n| `text` | string | Yes | `'This is the default content'` | Message content |\n| `single_title` | string | Yes | `Read More` | single button title |\n| `single_url` | string | Yes | `'https://github.com/leafney/dingtalk-action'` | single button url |\n\n\n### Independent jump ActionCard\n\n#### Example usage\n\n```\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: actionCard\n        title: '独立跳转的actionCard测试'\n        text: '测试--钉钉消息通知测试'\n        btns: |\n          [\n            {\n                \"title\": \"内容不错\",\n                \"actionURL\": \"https://www.dingtalk.com/\"\n            },\n            {\n                \"title\": \"不感兴趣\",\n                \"actionURL\": \"https://www.dingtalk.com/\"\n            }\n          ]\n\n```\n\n#### Options\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `title` | string | Yes | `'This is the default title'` | Message title |\n| `text` | string | Yes | `'This is the default content'` | Message content |\n| `btn_orientation` | string | No | `'0'` |  button arrangement of `0`-vertical , `1`-horizontal |\n| `btns` | string | Yes | `'[]'` | text for list with `title` and `actionURL` like `[{\"title\":\"内容不错\",\"actionURL\":\"https://www.dingtalk.com/\"}]` |\n\n\n-----\n\n## feedCard\n\n### Example usage\n\n```\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - uses: leafney/dingtalk-action@v1\n      if: always()\n      env:\n        DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}\n      with:\n        msgtype: feedCard\n        feed_links: |\n          [\n            {\n                \"title\": \"测试feedCard-时代的火车向前开\", \n                \"messageURL\": \"https://www.dingtalk.com/\", \n                \"picURL\": \"https://img.alicdn.com/tfs/TB1yL3taUgQMeJjy0FeXXXOEVXa-492-380.png\"\n            },\n            {\n                \"title\": \"时代的火车向前开2\", \n                \"messageURL\": \"https://www.dingtalk.com/\", \n                \"picURL\": \"https://img.alicdn.com/tfs/TB1yL3taUgQMeJjy0FeXXXOEVXa-492-380.png\"\n            }\n          ]\n```\n\n### Options\n\n| option | type | required | default | description |\n| ------ | ---- | -------- | ------- | ----------- |\n| `feed_links` | string | Yes | `'[]'` | text for list with `title`  `messageURL` and `picURL` like `[{\"title\":\"内容不错\",\"messageURL\":\"https://www.dingtalk.com/\",\"picURL\":\"https://www.dingtalk.com/\"}]` |\n\n\n-----\n\n## Dingtalk Webhook Official document\n\n- [dingtalk webhook](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq)\n\n\n## Build\n\n```\nnpm run package\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafney%2Fdingtalk-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafney%2Fdingtalk-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafney%2Fdingtalk-action/lists"}