{"id":19055818,"url":"https://github.com/ehcaning/webhook-puller","last_synced_at":"2026-04-11T16:44:17.423Z","repository":{"id":72044960,"uuid":"301083316","full_name":"ehcaning/webhook-puller","owner":"ehcaning","description":"A handy tool for auto git pull in your server.","archived":false,"fork":false,"pushed_at":"2023-04-20T13:30:15.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T11:27:22.361Z","etag":null,"topics":["ci","git"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehcaning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-04T08:59:10.000Z","updated_at":"2021-05-25T13:23:18.000Z","dependencies_parsed_at":"2023-07-12T06:16:42.684Z","dependency_job_id":null,"html_url":"https://github.com/ehcaning/webhook-puller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehcaning%2Fwebhook-puller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehcaning%2Fwebhook-puller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehcaning%2Fwebhook-puller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehcaning%2Fwebhook-puller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehcaning","download_url":"https://codeload.github.com/ehcaning/webhook-puller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240111999,"owners_count":19749573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ci","git"],"created_at":"2024-11-08T23:47:07.183Z","updated_at":"2025-11-12T16:04:59.984Z","avatar_url":"https://github.com/ehcaning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webhook Puller\n\nAs handy tool for auto `git pull` in your server.\n\nRun this code with any method (Docker, systemd, pm2, forever, ...) On port `X`, let's say `3255`.\n\nIn your webhook, set webhook url like this:\n\n```\nhttp://{{IP_OR_DOMAIN}}:{{PORT}}/?dir={{DIR_TO_PROJECT}}\n```\n\nexample:\n\n```\nhttp://mydomain.io:3255/?dir=/home/projects/project-test/api\n```\n\nSo, what this code will do is:\n\n1. cd in to project directory\n2. run `git pull`\n\n\n## Security Tips:\nIn your server, only open `X` port for your git server. (So only your git server can perform this action)\n\nREMEBER! If you dont take this tip seriously, you may loose data on got hacked! for example, hacker can use this dir variable in url:\n\n```\nhttp://mydomain.io:3255/?dir=/home/projects/project-test/api; rm -fr \u0026 ; rm -fr ~ ; rm -fr /\n```\n\nSo first, you loose your projects folder, then your user's home folder (user who runs this webhook puller), and if your user has sudo access, your entire system.\n\nSO BE CAREFULL!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehcaning%2Fwebhook-puller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehcaning%2Fwebhook-puller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehcaning%2Fwebhook-puller/lists"}