{"id":44332696,"url":"https://github.com/drone-plugins/drone-slack","last_synced_at":"2026-02-11T10:30:46.237Z","repository":{"id":27956016,"uuid":"31448914","full_name":"drone-plugins/drone-slack","owner":"drone-plugins","description":"Drone plugin for sending Slack notifications","archived":false,"fork":false,"pushed_at":"2026-02-11T02:37:04.000Z","size":471,"stargazers_count":60,"open_issues_count":19,"forks_count":83,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-02-11T06:50:29.086Z","etag":null,"topics":["drone","drone-plugin"],"latest_commit_sha":null,"homepage":"http://plugins.drone.io/drone-plugins/drone-slack","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ijry/lyadmin","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drone-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-02-28T03:02:42.000Z","updated_at":"2025-05-09T15:59:40.000Z","dependencies_parsed_at":"2023-09-29T05:55:22.169Z","dependency_job_id":"9f03af07-a099-477d-bed6-776f49370681","html_url":"https://github.com/drone-plugins/drone-slack","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/drone-plugins/drone-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drone-plugins","download_url":"https://codeload.github.com/drone-plugins/drone-slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-slack/sbom","scorecard":{"id":356635,"data":{"date":"2025-08-11","repo":{"name":"github.com/drone-plugins/drone-slack","commit":"7013a1e7b65e5bc75099ea9350b96da6decd2e8c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":7,"reason":"Found 7/9 approved changesets -- score normalized to 7","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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: containerImage not pinned by hash: docker/Dockerfile.linux.amd64:1: pin your Docker image by updating alpine:3.20 to alpine:3.20@sha256:b3119ef930faabb6b7b976780c0c7a9c1aa24d0c75e9179ac10e6bc9ac080d0d","Warn: containerImage not pinned by hash: docker/Dockerfile.linux.arm64:1: pin your Docker image by updating alpine:3.20 to alpine:3.20@sha256:b3119ef930faabb6b7b976780c0c7a9c1aa24d0c75e9179ac10e6bc9ac080d0d","Info:   2 out of   4 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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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 28 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"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0411 / GHSA-3839-6r69-m497 / GHSA-xg2h-wx96-xgxr","Warn: Project is vulnerable to: GO-2025-3754 / GHSA-2x5j-vhc8-9cwm","Warn: Project is vulnerable to: GO-2025-3367 / GHSA-r9px-m959-cxf4","Warn: Project is vulnerable to: GO-2025-3368 / GHSA-v725-9546-7q7m","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"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-18T09:45:35.034Z","repository_id":27956016,"created_at":"2025-08-18T09:45:35.034Z","updated_at":"2025-08-18T09:45:35.034Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: 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":["drone","drone-plugin"],"created_at":"2026-02-11T10:30:45.399Z","updated_at":"2026-02-11T10:30:46.231Z","avatar_url":"https://github.com/drone-plugins.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-slack\n\n[![Build Status](http://harness.drone.io/api/badges/drone-plugins/drone-slack/status.svg)](http://harness.drone.io/drone-plugins/drone-slack)\n[![Slack](https://img.shields.io/badge/slack-drone-orange.svg?logo=slack)](https://join.slack.com/t/harnesscommunity/shared_invite/zt-y4hdqh7p-RVuEQyIl5Hcx4Ck8VCvzBw)\n[![Join the discussion at https://community.harness.io](https://img.shields.io/badge/discourse-forum-orange.svg)](https://community.harness.io)\n[![Drone questions at https://stackoverflow.com](https://img.shields.io/badge/drone-stackoverflow-orange.svg)](https://stackoverflow.com/questions/tagged/drone.io)\n[![Go Doc](https://godoc.org/github.com/drone-plugins/drone-slack?status.svg)](http://godoc.org/github.com/drone-plugins/drone-slack)\n[![Go Report](https://goreportcard.com/badge/github.com/drone-plugins/drone-slack)](https://goreportcard.com/report/github.com/drone-plugins/drone-slack)\n\nDrone plugin for sending Slack notifications. For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-slack/).\n\n## Build\n\nBuild the binary with the following commands:\n\n```\ngo build\n```\n\n## Docker\n\nBuild the Docker image with the following commands:\n\n```\nGOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/drone-slack\ndocker build --rm -t plugins/slack .\n```\n\n## Send Slack messages Usage\n\nTo Send Slack messages use the following\n\nExecute from the working directory:\n\n```\ndocker run --rm \\\n  -e SLACK_WEBHOOK=https://hooks.slack.com/services/... \\\n  -e PLUGIN_CHANNEL=foo \\\n  -e PLUGIN_USERNAME=drone \\\n  -e DRONE_REPO_OWNER=octocat \\\n  -e DRONE_REPO_NAME=hello-world \\\n  -e DRONE_COMMIT_SHA=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d \\\n  -e DRONE_COMMIT_BRANCH=master \\\n  -e DRONE_COMMIT_AUTHOR=octocat \\\n  -e DRONE_COMMIT_AUTHOR_EMAIL=octocat@github.com \\\n  -e DRONE_COMMIT_AUTHOR_AVATAR=\"https://avatars0.githubusercontent.com/u/583231?s=460\u0026v=4\" \\\n  -e DRONE_COMMIT_AUTHOR_NAME=\"The Octocat\" \\\n  -e DRONE_BUILD_NUMBER=1 \\\n  -e DRONE_BUILD_STATUS=success \\\n  -e DRONE_BUILD_LINK=http://github.com/octocat/hello-world \\\n  -e DRONE_TAG=1.0.0 \\\n  plugins/slack\n```\n\nPlease note the following new environment variables:\n\n- `SLACK_ACCESS_TOKEN`: The access token for Slack API authentication.\n- `PLUGIN_CUSTOM_BLOCK`: Custom blocks in JSON format to include in the Slack message.\n\nMake sure to replace `your_access_token` with your actual Slack access token and adjust\n\nIf you provide an access token, it will use the Slack API to send the message. Otherwise, it will use the webhook.\n\n\n## Upload files to Slack\n\nTo Send Slack messages use the following\n\nExecute from the working directory:\n```\ndocker run --network host --rm \\\n  -e PLUGIN_ACCESS_TOKEN=your_access_token   \\\n  -e PLUGIN_CHANNEL=C07TL1KNV8Q \\\n  -e PLUGIN_USERNAME=jenkinstest003app \\\n  -e PLUGIN_FILE_PATH='/home/hns/test/b.txt' \\\n  -e PLUGIN_INITIAL_COMMENT='some start of text' \\\n  -e PLUGIN_TITLE='Build OK now' \\\n  plugins/slack\n```\n\nPlease note the following new environment variables:\n\n- `PLUGIN_ACCESS_TOKEN`: The access token for Slack API authentication.\n- `PLUGIN_CUSTOM_BLOCK`: Custom blocks in JSON format to include in the Slack message.\n\nMake sure to replace `your_access_token` with your actual Slack access token and adjust\n\nIf you provide an access token, it will use the Slack API to send the message.\n\n\n### Get Slack Id of a user from a Email ID\n```bash\ndocker run --network host --rm \\\n-e PLUGIN_ACCESS_TOKEN=your_access_token \\\n-e PLUGIN_SLACK_ID_OF=user01@somedomain.com \\\nplugins/slack\n```\nOutput will be stored in the FOUND_SLACK_ID environment variable\nMake sure to replace `your_access_token` with your actual Slack access token and adjust\n\n### Get the Slack IDs of all committers from a git repo with two commit ids as commit Ids\n```bash\ndocker run --network host --rm \\\n-e PLUGIN_ACCESS_TOKEN=your_access_token \\\n-e PLUGIN_COMMITTER_LIST_GIT_PATH=/harness \\\n-e PLUGIN_RECENT_COMMIT_ID=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d \\\n-e PLUGIN_OLD_COMMIT_ID=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d \\\nplugins/slack\n```\n\n### Get the Slack IDs of all committers from a git repo with HEAD and a commit id\n```bash\ndocker run --network host --rm \\\n-e PLUGIN_ACCESS_TOKEN=your_access_token \\\n-e PLUGIN_COMMITTER_LIST_GIT_PATH=/harness \\\n-e PLUGIN_RECENT_COMMIT_ID=HEAD \\\n-e PLUGIN_OLD_COMMIT_ID=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d \\\nplugins/slack\n```\n\n### Get the Slack IDs of all committers from a git repo with HEAD and a number of commits behind HEAD\n```bash\ndocker run --network host --rm \\\n-e PLUGIN_ACCESS_TOKEN=your_access_token \\\n-e PLUGIN_COMMITTER_LIST_GIT_PATH=/harness \\\n-e PLUGIN_RECENT_COMMIT_ID=HEAD \\\n-e PLUGIN_OLD_COMMIT_ID=5 \\\nplugins/slack\n```\n\nOutput will be stored in the COMMITTER_SLACK_ID_LIST environment variable as comma separated values.\nMake sure to replace `your_access_token` with your actual Slack access token and adjust.\n\n## Release Preparation\n\nRun the changelog generator.\n\n```BASH\ndocker run -it --rm -v \"$(pwd)\":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone-plugins -p drone-slack -t \u003csecret github token\u003e\n```\n\nYou can generate a token by logging into your GitHub account and going to Settings -\u003e Personal access tokens.\n\nNext we tag the PR's with the fixes or enhancements labels. If the PR does not fufil the requirements, do not add a label.\n\n**Before moving on make sure to update the version file `version/version.go \u0026\u0026 version/version_test.go`.**\n\nRun the changelog generator again with the future version according to semver.\n\n```BASH\ndocker run -it --rm -v \"$(pwd)\":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone-plugins -p drone-slack \u003csecret token\u003e --future-release v1.0.0\n```\n\nCreate your pull request for the release. Get it merged then tag the release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone-plugins%2Fdrone-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrone-plugins%2Fdrone-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone-plugins%2Fdrone-slack/lists"}