{"id":15099383,"url":"https://github.com/art049/mongodb-cluster-action","last_synced_at":"2026-01-28T19:33:50.111Z","repository":{"id":57945101,"uuid":"529320075","full_name":"art049/mongodb-cluster-action","owner":"art049","description":"Github Action and Taskfile allowing to spawn arbitrary MongoDB cluster (standalone, replica sets, shards)","archived":false,"fork":false,"pushed_at":"2023-12-18T14:34:58.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T09:29:47.596Z","etag":null,"topics":["action","github-actions","mongodb","replica-set","sharded-cluster","standalone","task","taskfile"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/art049.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":"2022-08-26T15:55:48.000Z","updated_at":"2022-08-28T10:44:39.000Z","dependencies_parsed_at":"2024-09-15T17:22:30.658Z","dependency_job_id":null,"html_url":"https://github.com/art049/mongodb-cluster-action","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/art049/mongodb-cluster-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art049%2Fmongodb-cluster-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art049%2Fmongodb-cluster-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art049%2Fmongodb-cluster-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art049%2Fmongodb-cluster-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/art049","download_url":"https://codeload.github.com/art049/mongodb-cluster-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art049%2Fmongodb-cluster-action/sbom","scorecard":{"id":208779,"data":{"date":"2025-08-11","repo":{"name":"github.com/art049/mongodb-cluster-action","commit":"39e0aee834e3e27282e3239b644a577c35d369b4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"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/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/art049/mongodb-cluster-action/ci.yml/master?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":"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":"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":"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 '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"}}]},"last_synced_at":"2025-08-17T00:19:47.269Z","repository_id":57945101,"created_at":"2025-08-17T00:19:47.269Z","updated_at":"2025-08-17T00:19:47.269Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28850320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"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":["action","github-actions","mongodb","replica-set","sharded-cluster","standalone","task","taskfile"],"created_at":"2024-09-25T17:11:49.821Z","updated_at":"2026-01-28T19:33:50.092Z","avatar_url":"https://github.com/art049.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Cluster Action\n\n[![Test GH Action](https://github.com/art049/mongodb-cluster-action/actions/workflows/ci.yml/badge.svg)](https://github.com/art049/mongodb-cluster-action/actions/workflows/ci.yml)\n\n## Github Action Usage\n\n#### Basic\n\n```yaml\nsteps:\n  # Create the MongoDB cluster\n  - uses: art049/mongodb-cluster-action@v0\n    id: mongodb-cluster-action\n  # Run a CI job and pass the cluster address\n  # in the MONGO_URI env variable\n  - run: ./script/test\n    env:\n      MONGO_URI: ${{ steps.mongodb-cluster-action.outputs.connection-string }}\n```\n\n#### Specify a MongoDB server version\n\n```yaml\nsteps:\n  ...\n  - uses: art049/mongodb-cluster-action@v0\n    id: mongodb-cluster-action\n    with:\n      version: \"3.6\"\n  ...\n```\n\n#### Run a replicaSet cluster\n\n```yaml\nsteps:\n  ...\n  - uses: art049/mongodb-cluster-action@v0\n    id: mongodb-cluster-action\n    with:\n      mode: replicaSet\n  ...\n```\n\n#### Run a sharded cluster\n\n```yaml\nsteps:\n  ...\n  - uses: art049/mongodb-cluster-action@v0\n    id: mongodb-cluster-action\n    with:\n      mode: sharded\n  ...\n```\n\n### Action details\n\n#### Inputs\n\n| Input     | Description                                                                                                        | Default      |\n| --------- | ------------------------------------------------------------------------------------------------------------------ | ------------ |\n| `version` | Specifies the MongoDB version to use. Available versions can be found [here](https://hub.docker.com/_/mongo/tags). | `latest`     |\n| `mode`    | Specifies the type of cluster to create: either `standalone`, `replicaSet` or `sharded`.                           | `standalone` |\n\n#### Outputs\n\n| Output              | Description                                                    |\n| ------------------- | -------------------------------------------------------------- |\n| `connection-string` | The connection string to use to connect to the MongoDB cluster |\n\n## Taskfile Usage\n\nThis action can also be used with [taskfile](https://taskfile.dev/).\n\nHere are the available tasks:\n\n- `standalone-docker`: Start a standalone MongoDB instance using a docker container\n\n- `standalone-docker:down`: Stop the standalone instance\n\n- `replica-compose`: Start a replica set MongoDB cluster using docker-compose\n\n- `replica-compose:down`: Stop the replica set cluster\n\n- `sharded-compose`: Start a sharded MongoDB cluster using docker-compose\n\n- `sharded-compose:down`: Stop the sharded MongoDB cluster\n\n### Integration in an existing taskfile\n\nFirst add this repository as a submodule in your project:\n\n```bash\ngit submodule add https://github.com/art049/mongodb-cluster-action.git .mongodb-cluster-action\n```\n\nThen you can include the taskfile in an existing one by adding the following lines:\n\n```yaml\nincludes:\n  mongodb:\n    taskfile: ./.mongodb-cluster-action/Taskfile.yml\n    dir: .mongodb-cluster-action\n    optional: true\n```\n\nYou can then use the mongodb cluster actions by adding the `mongodb` prefix. For example to start a standalone MongoDB instance:\n\n```bash\ntask mongodb:standalone-docker\n```\n\n## Generated clusters details\n\n### Standalone\n\nSpawn a standalone MongoDB instance.\n\nServer: `localhost:27017`\n\nConnection string: `mongodb://localhost:27017/`\n\n### Replica Set\n\nSpawn a 3 member replicaset cluster (1 primary, 2 secondaries)\n\nServers:\n\n- `172.16.17.11:27017`\n- `172.16.17.12:27017`\n- `172.16.17.13:27017`\n\nConnection string: `mongodb://172.16.17.11:27017,172.16.17.12:27017,172.16.17.13:27017/?replicaSet=mongodb-action-replica-set`\n\n### Sharded Cluster\n\nSpawn the most simple sharded cluster as possible with 3 replicated shards.\n\n[![](https://mermaid.ink/img/pako:eNp1ksFqwzAQRH9F7MmG2HiVUDem9JL01pN99UWO5NgQW0GRAiXk36vGK2jsdg9CDDP7BqQbHLRUUMDRiHPHPst6ZH520U6PbX-sroa9NeadYc5TfEkxTxELnme4jVmSJKyMSu2s-s-Vx9O-8mGusujSCSMzUquMZEG6mK_h2WPNa8xoZsGGgs0iiH8GqQdOMQw9kGTqgYse69BjFiA-LvhrfAoQl092HtZwkonLF9zNjBsCxOUL7uaZ-_uEFQzKDKKX_rlvP1oNtlODqqHwV6la4U62hnq8e6s7S2HVh-ytNlC04nRRKxDO6uprPEBhjVPBtO-F_z0Due7fFniYnw)](https://mermaid-js.github.io/mermaid-live-editor/edit#pako:eNp1ksFqwzAQRH9F7MmG2HiVUDem9JL01pN99UWO5NgQW0GRAiXk36vGK2jsdg9CDDP7BqQbHLRUUMDRiHPHPst6ZH520U6PbX-sroa9NeadYc5TfEkxTxELnme4jVmSJKyMSu2s-s-Vx9O-8mGusujSCSMzUquMZEG6mK_h2WPNa8xoZsGGgs0iiH8GqQdOMQw9kGTqgYse69BjFiA-LvhrfAoQl092HtZwkonLF9zNjBsCxOUL7uaZ-_uEFQzKDKKX_rlvP1oNtlODqqHwV6la4U62hnq8e6s7S2HVh-ytNlC04nRRKxDO6uprPEBhjVPBtO-F_z0Due7fFniYnw)\n\nServers:\n\n- Router: `172.16.17.11:27017`\n- Configuration server: `172.16.17.11:27019`\n- Shard0 servers:\n  - `172.16.17.20:27018`\n  - `172.16.17.21:27018`\n- Shard1 servers:\n  - `172.16.17.30:27018`\n  - `172.16.17.31:27018`\n- Shard2 servers:\n  - `172.16.17.40:27018`\n  - `172.16.17.41:27018`\n\nConnection string: `mongodb://172.16.17.10:27017/?retryWrites=false`\n\n[Source](https://docs.mongodb.com/manual/core/sharded-cluster-components/#development-configuration)\n\n**Note**: Does not work with Mongo 4.4.2 ([issue](https://jira.mongodb.org/browse/SERVER-53259))\n\n\u003c/details\u003e\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fart049%2Fmongodb-cluster-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fart049%2Fmongodb-cluster-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fart049%2Fmongodb-cluster-action/lists"}