actions-marketplace-validations/MongoSH Command Docker Action
Execute JS commands using MongoSH against a MongoDB
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Feb 11, 2022
- License
- Apache 2.0
Pinned Snippet
uses: actions-marketplace-validations/krassdanke_mongosh-command-action@6cf60f8633b4f7ad2df4bc34e83912c921896971 # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| connectionString | Your mongodb connection string. This will be passed to connect() in mongosh script file and return the db object for your JS snippet. | yes | localhost:27017 |
| snippet | Your mongodb commands as a JavaScript snippet. You already get a db-object from us to use in your snippet. | yes | "" |
Outputs
| name | description |
|---|---|
| input-command | The whole JS file that is run using mongosh. |
| output | The output of the whole JS script (add output using "console.log()" in your command). |