{"id":24253397,"url":"https://github.com/msz/oneshot","last_synced_at":"2026-05-28T13:31:17.061Z","repository":{"id":80917622,"uuid":"108745928","full_name":"msz/oneshot","owner":"msz","description":"🔫 simple webhook receiver for launching a shell command","archived":false,"fork":false,"pushed_at":"2017-11-11T21:35:56.000Z","size":54,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-05T08:45:04.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msz.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":"2017-10-29T15:23:58.000Z","updated_at":"2018-06-02T11:59:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3a31c89-318b-4351-a760-232e800f0193","html_url":"https://github.com/msz/oneshot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/msz/oneshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msz%2Foneshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msz%2Foneshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msz%2Foneshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msz%2Foneshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msz","download_url":"https://codeload.github.com/msz/oneshot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msz%2Foneshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33611248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-15T03:27:01.091Z","updated_at":"2026-05-28T13:31:17.040Z","avatar_url":"https://github.com/msz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oneshot\n\na minimal, no dependency webhook server for launching a shell command, written\nin pure Node\n\n## Features\n\n- receives your webhook\n- runs your command\n- supports the GitHub webhook authentication scheme out of the box\n- doesn't break when leftpad is unpublished\n\n## Installation \u0026 running\n\n*oneshot* works great with Docker:\n\n```\n$ docker run --publish \"8080:80\" \\\n             --detach \\\n             michalszewczak/oneshot\n```\n\nAlternatively, you can always clone this repo and do:\n```\nONESHOT_PORT=8080 npm start\n```\nThis requires Node 8 or higher. An npm package installation option might also\nbe available soon.\n\nNow let's POST:\n\n```\n$ curl --data '' localhost:8080\n{\n  \"errorCode\": 0,\n  \"stdout\": \"Hello from a oneshot webhook!\\n\",\n  \"stderr\": \"\"\n}\n```\n\nTo specify the command to run, set the `ONESHOT_COMMAND` environment variable:\n\n```\n$ docker run --publish \"8080:80\" \\\n             --env ONESHOT_COMMAND=\"echo \\\"My custom command!\\\"\" \\\n             --detach \\\n             michalszewczak/oneshot\n```\n```\n$ curl --data '' localhost:8080\n{\n  \"errorCode\": 0,\n  \"stdout\": \"My custom command!\\n\",\n  \"stderr\": \"\"\n}\n```\n\nIn most cases, you'll want to extend the *oneshot* Docker image and install\nsome software for *oneshot* to run. Check out\nhttps://github.com/msz/blog-stack for an example of specialized *oneshot*\nservers.\n\n## Configuration\n\nConfigure *oneshot* through environment variables.\n\n`ONESHOT_PORT` - The port which *oneshot* listens on. Default: 80\n\n`ONESHOT_COMMAND` - The command to execute. A simple echo command by default.\n\n`ONESHOT_AUTH` - The authorization scheme to apply. Valid values:\n* `none` - (default) No authorization. *oneshot* will execute the command upon\n  receiving the POST request.\n* `github` - Uses the GitHub [webhook authorization\n  scheme](https://developer.github.com/webhooks/securing/). Set the secret in\n  the `ONESHOT_AUTH_KEY` environment variable.\n\n`ONESHOT_AUTH_KEY` - The authorization key to use. See `ONESHOT_AUTH`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsz%2Foneshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsz%2Foneshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsz%2Foneshot/lists"}