{"id":44332700,"url":"https://github.com/drone-plugins/drone-s3","last_synced_at":"2026-02-11T10:30:47.713Z","repository":{"id":32134465,"uuid":"35707156","full_name":"drone-plugins/drone-s3","owner":"drone-plugins","description":"Drone plugin for publishing artifacts to Amazon S3","archived":false,"fork":false,"pushed_at":"2026-02-03T15:05:28.000Z","size":727,"stargazers_count":39,"open_issues_count":29,"forks_count":68,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-04T04:58:36.560Z","etag":null,"topics":["drone","drone-plugin"],"latest_commit_sha":null,"homepage":"http://plugins.drone.io/drone-plugins/drone-s3","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"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":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":"2015-05-16T02:49:53.000Z","updated_at":"2026-01-30T08:11:54.000Z","dependencies_parsed_at":"2026-01-27T17:05:25.673Z","dependency_job_id":null,"html_url":"https://github.com/drone-plugins/drone-s3","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/drone-plugins/drone-s3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drone-plugins","download_url":"https://codeload.github.com/drone-plugins/drone-s3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone-plugins%2Fdrone-s3/sbom","scorecard":{"id":356634,"data":{"date":"2025-08-11","repo":{"name":"github.com/drone-plugins/drone-s3","commit":"6655f98917ccd146743cca30c7bd2e2249b1c99e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"Code-Review","score":7,"reason":"Found 13/18 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":"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":"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: 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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: docker/Dockerfile.linux.amd64:1","Warn: containerImage not pinned by hash: docker/Dockerfile.linux.arm64:1: pin your Docker image by updating plugins/base:multiarch to plugins/base:multiarch@sha256:5f8ee491ed20a4333899b43624e30232a02b450f7f0ce0bd4797e22216ebe579","Warn: containerImage not pinned by hash: docker/Dockerfile.windows.1809:3","Warn: containerImage not pinned by hash: docker/Dockerfile.windows.1809:6: pin your Docker image by updating mcr.microsoft.com/windows/nanoserver:1809 to mcr.microsoft.com/windows/nanoserver:1809@sha256:6ed6115f11187aa2105503cad9f057c8ed9c900be3352ba1fb0343e9e4b15f6b","Warn: containerImage not pinned by hash: docker/Dockerfile.windows.ltsc2022:3","Warn: containerImage not pinned by hash: docker/Dockerfile.windows.ltsc2022:6: pin your Docker image by updating plugins/base:windows-ltsc2022-amd64 to plugins/base:windows-ltsc2022-amd64@sha256:b0e662a71fbe8a28147fae27a68aa4bc5236c02bbe3400513bbefdb0469a50ce","Info:   0 out of   6 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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.5.3 not signed: https://api.github.com/repos/drone-plugins/drone-s3/releases/211519263","Warn: release artifact v1.5.3-debug1 not signed: https://api.github.com/repos/drone-plugins/drone-s3/releases/211358002","Warn: release artifact v1.5.2 not signed: https://api.github.com/repos/drone-plugins/drone-s3/releases/209901659","Warn: release artifact v1.5.1 not signed: https://api.github.com/repos/drone-plugins/drone-s3/releases/199875857","Warn: release artifact v1.5.1-debug not signed: https://api.github.com/repos/drone-plugins/drone-s3/releases/198531988","Warn: release artifact v1.5.3 does not have provenance: https://api.github.com/repos/drone-plugins/drone-s3/releases/211519263","Warn: release artifact v1.5.3-debug1 does not have provenance: https://api.github.com/repos/drone-plugins/drone-s3/releases/211358002","Warn: release artifact v1.5.2 does not have provenance: https://api.github.com/repos/drone-plugins/drone-s3/releases/209901659","Warn: release artifact v1.5.1 does not have provenance: https://api.github.com/repos/drone-plugins/drone-s3/releases/199875857","Warn: release artifact v1.5.1-debug does not have provenance: https://api.github.com/repos/drone-plugins/drone-s3/releases/198531988"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646"],"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 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"}}]},"last_synced_at":"2025-08-18T09:45:34.632Z","repository_id":32134465,"created_at":"2025-08-18T09:45:34.632Z","updated_at":"2025-08-18T09:45:34.632Z"},"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:47.031Z","updated_at":"2026-02-11T10:30:47.702Z","avatar_url":"https://github.com/drone-plugins.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-s3\n\n[![Build Status](http://cloud.drone.io/api/badges/drone-plugins/drone-s3/status.svg)](http://cloud.drone.io/drone-plugins/drone-s3)\n[![Gitter chat](https://badges.gitter.im/drone/drone.png)](https://gitter.im/drone/drone)\n[![Join the discussion at https://discourse.drone.io](https://img.shields.io/badge/discourse-forum-orange.svg)](https://discourse.drone.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[![](https://images.microbadger.com/badges/image/plugins/s3.svg)](https://microbadger.com/images/plugins/s3 \"Get your own image badge on microbadger.com\")\n[![Go Doc](https://godoc.org/github.com/drone-plugins/drone-s3?status.svg)](http://godoc.org/github.com/drone-plugins/drone-s3)\n[![Go Report](https://goreportcard.com/badge/github.com/drone-plugins/drone-s3)](https://goreportcard.com/report/github.com/drone-plugins/drone-s3)\n\nDrone plugin to publish files and artifacts to Amazon S3 or Minio. For the\nusage information and a listing of the available options please take a look at\n[the docs](http://plugins.drone.io/drone-plugins/drone-s3/).\n\nRun the following script to install git-leaks support to this repo.\n```\nchmod +x ./git-hooks/install.sh\n./git-hooks/install.sh\n```\n\n## Build\n\nBuild the binary with the following commands:\n\n```\ngo build\ngo test\n```\n\n## Docker\n\nBuild the Docker image with the following commands:\n\n```\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -o release/linux/amd64/drone-s3\ndocker build --rm=true -t plugins/s3 .\n```\n\nPlease note incorrectly building the image for the correct x64 linux and with\nCGO disabled will result in an error when running the Docker image:\n\n```\ndocker: Error response from daemon: Container command\n'/bin/drone-s3' not found or does not exist..\n```\n\n## Usage\n\nExecute from the working directory:\n\n* For Upload\n```\ndocker run --rm \\\n  -e PLUGIN_SOURCE=\u003csource\u003e \\\n  -e PLUGIN_TARGET=\u003ctarget\u003e \\\n  -e PLUGIN_BUCKET=\u003cbucket\u003e \\\n  -e AWS_ACCESS_KEY_ID=\u003ctoken\u003e \\\n  -e AWS_SECRET_ACCESS_KEY=\u003csecret\u003e \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  plugins/s3 --dry-run\n```\n\n### Wildcard strip_prefix\n\nYou can strip dynamic, runtime-generated directory prefixes from S3 keys using shell-style wildcards in `strip_prefix`.\n\nSupported patterns:\n\n- `*` matches exactly one path segment (no `/`).\n- `**` matches any depth (including zero segments).\n- `?` matches exactly one character (no `/`).\n\nThe pattern is anchored at the start of the path. Use `/` to delimit directory boundaries. We recommend ending directory patterns with a trailing `/` to strip whole directory segments.\n\nExamples:\n\n- Pattern: `/harness/artifacts/*/`\n  - Path: `/harness/artifacts/build-123/module/app.zip`\n  - Result key suffix: `module/app.zip`\n\n- Pattern: `/harness/artifacts/**/`\n  - Path: `/harness/artifacts/build-123/deep/nested/file.zip`\n  - Result key suffix: `file.zip`\n\n- Pattern: `/harness/artifacts/*/services/`\n  - Path: `/harness/artifacts/build-123/services/auth/auth.zip`\n  - Result key suffix: `auth/auth.zip`\n\nTrailing slash semantics:\n\n- A trailing `/` indicates you are stripping up to a directory boundary.\n- Without a trailing `/`, the match may end mid-segment. For directory prefix stripping, prefer a trailing `/`.\n\nWindows notes:\n\n- `strip_prefix` must start with `/`. Backslashes are accepted and normalized to `/` internally (e.g. `\\\\harness\\\\artifacts\\\\*/` is allowed).\n- Windows drive letters like `C:\\\\...` are not supported and will be rejected.\n\nDry-run logging:\n\n- With `--dry-run` or `PLUGIN_DRY_RUN=true`, the plugin logs what would be uploaded.\n- Fields include `name` (source), `target` (S3 key), `strip_pattern`, and `removed_prefix` (the portion stripped from the path when the pattern matches).\n\n* For Download\n```\ndocker run --rm \\\n  -e PLUGIN_SOURCE=\u003csource directory to be downloaded from bucket\u003e \\\n  -e PLUGIN_BUCKET=\u003cbucket\u003e \\\n  -e AWS_ACCESS_KEY_ID=\u003ctoken\u003e \\\n  -e AWS_SECRET_ACCESS_KEY=\u003csecret\u003e \\\n  -e PLUGIN_REGION=\u003cregion where the bucket is deployed\u003e \\\n  -e PLUGIN_DOWNLOAD=\"true\" \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  plugins/s3 --dry-run\n```\n\n## Configuration Variables for Secondary Role Assumption with External ID\n\nThe following environment variables enable the plugin to assume a secondary IAM role using IRSA, with an External ID if required by the role’s trust policy.\n\n### Variables\n\n#### `PLUGIN_USER_ROLE_ARN`\n\n- **Type**: String\n- **Required**: No\n- **Description**: Specifies the secondary IAM role to be assumed by the plugin, allowing it to inherit permissions associated with this role and access specific AWS resources.\n\n#### `PLUGIN_USER_ROLE_EXTERNAL_ID`\n\n- **Type**: String\n- **Required**: No\n- **Description**: Provide the External ID necessary for the role assumption process if the secondary role’s trust policy mandates it. This is often required for added security, ensuring that only authorized entities assume the role.\n\n### Usage Notes\n\n- If the role secondary role (`PLUGIN_USER_ROLE_ARN`) requires an External ID then pass it through `PLUGIN_USER_ROLE_EXTERNAL_ID`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone-plugins%2Fdrone-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrone-plugins%2Fdrone-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone-plugins%2Fdrone-s3/lists"}