actions-marketplace-validations/MongoSH Command Docker Action

Execute JS commands using MongoSH against a MongoDB

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Feb 11, 2022
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/krassdanke_mongosh-command-action@6cf60f8633b4f7ad2df4bc34e83912c921896971 # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
connectionStringYour mongodb connection string. This will be passed to connect() in mongosh script file and return the db object for your JS snippet.yeslocalhost:27017
snippetYour mongodb commands as a JavaScript snippet. You already get a db-object from us to use in your snippet.yes""
namedescription
input-commandThe whole JS file that is run using mongosh.
outputThe output of the whole JS script (add output using "console.log()" in your command).