{"id":19269613,"url":"https://github.com/status-im/infra-role-github-webhook","last_synced_at":"2026-05-02T17:38:58.303Z","repository":{"id":171638515,"uuid":"647207908","full_name":"status-im/infra-role-github-webhook","owner":"status-im","description":"Ansible role for GitHub webhook handler","archived":false,"fork":false,"pushed_at":"2025-02-19T11:39:29.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-22T17:43:26.355Z","etag":null,"topics":["ansible-role","git","github","infra","webhook"],"latest_commit_sha":null,"homepage":"https://docs.github.com/en/webhooks/about-webhooks","language":"Python","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/status-im.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":"2023-05-30T09:35:48.000Z","updated_at":"2025-02-19T11:39:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b9bb350-ad40-4598-a6b5-4a33a49e71ba","html_url":"https://github.com/status-im/infra-role-github-webhook","commit_stats":null,"previous_names":["status-im/infra-role-github-webhook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-github-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-github-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-github-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-github-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/status-im","download_url":"https://codeload.github.com/status-im/infra-role-github-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371761,"owners_count":19790888,"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":["ansible-role","git","github","infra","webhook"],"created_at":"2024-11-09T20:20:47.542Z","updated_at":"2026-05-02T17:38:53.265Z","avatar_url":"https://github.com/status-im.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description \n\nThis is a helper role that deploy a python server for github webhook\n\n# Configuration\n\nRequired configuration:\n```yaml\ngithub_webhook_dest_path: '/opt/repo'\ngithub_webhook_secret: 'super-secret-webhook-secret'\ngithub_webhook_repo_url: 'https://github.com/example-org/example-repo'\ngithub_webhook_repo_branch: 'master'\ngithub_webhook_post_command: 'echo \"update repo\"'\n```\nThe user and group creation can be deactivated:\n```yaml\ngithub_webhook_create_user_and_group: False\n```\nAdditionally these options can be useful:\n```yaml\ngithub_webhook_ssh_key: '-----BEGIN OPENSSH PRIVATE KEY-----\\n...'\ngithub_webhook_service_user: 'repouser'\ngithub_webhook_user_additional_groups: ['docker']\ngithub_webhook_service_user_uid: 1500\ngithub_webhook_instances:\n  - 'node-01.do-ams3.proxy.test'\n  - 'node-02.do-ams3.proxy.test'\n```\nExplanations:\n\n* `github_webhook_dest_path` - Absolute path for repository location.\n* `github_webhook_secret` - Used to configure the webhook in GitHub repository.\n* `github_webhook_ssh_key` - Optional private SSH key to checkout private repositories.\n* `github_webhook_service_user` - Define user to own the repo and run the service.\n* `github_wehbook_service_user_groups` - Modify list of groups of service user.\n* `github_webhook_service_user_uid` - Change UID of service user to match repo user.\n* `github_webhook_post_command` - Command to execute after webhook request is received.\n* `github_webhook_instances` - List of all webhook instances the webhook request should go to.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Finfra-role-github-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatus-im%2Finfra-role-github-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Finfra-role-github-webhook/lists"}