{"id":16293563,"url":"https://github.com/badsyntax/strapi-webhook-actions-proxy","last_synced_at":"2025-07-25T21:14:59.179Z","repository":{"id":36988631,"uuid":"378343104","full_name":"badsyntax/strapi-webhook-actions-proxy","owner":"badsyntax","description":"Strapi webhook proxy to trigger a GitHub repository_dispatch event","archived":false,"fork":false,"pushed_at":"2023-01-26T00:13:19.000Z","size":402,"stargazers_count":9,"open_issues_count":24,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T22:55:07.842Z","etag":null,"topics":["docker","github-actions","strapi","strapijs"],"latest_commit_sha":null,"homepage":"https://github.com/badsyntax/strapi-webhook-actions-proxy/pkgs/container/strapi-webhook-actions-proxy","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badsyntax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-06-19T06:39:49.000Z","updated_at":"2024-02-27T21:13:11.000Z","dependencies_parsed_at":"2023-02-14T12:46:32.217Z","dependency_job_id":null,"html_url":"https://github.com/badsyntax/strapi-webhook-actions-proxy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fstrapi-webhook-actions-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fstrapi-webhook-actions-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fstrapi-webhook-actions-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fstrapi-webhook-actions-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badsyntax","download_url":"https://codeload.github.com/badsyntax/strapi-webhook-actions-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047647,"owners_count":20389206,"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":["docker","github-actions","strapi","strapijs"],"created_at":"2024-10-10T20:11:44.521Z","updated_at":"2025-03-20T03:31:08.082Z","avatar_url":"https://github.com/badsyntax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strapi Webhook GitHub Actions Proxy\n\n[![Deploy](https://github.com/badsyntax/strapi-webhook-actions-proxy/actions/workflows/prod-deploy.yml/badge.svg)](https://github.com/badsyntax/strapi-webhook-actions-proxy/actions/workflows/prod-deploy.yml)\n[![Analyze](https://github.com/badsyntax/strapi-webhook-actions-proxy/actions/workflows/analyze.yml/badge.svg)](https://github.com/badsyntax/strapi-webhook-actions-proxy/actions/workflows/analyze.yml)\n[![CodeQL](https://github.com/badsyntax/strapi-webhook-actions-proxy/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/badsyntax/strapi-webhook-actions-proxy/actions/workflows/codeql-analysis.yml)\n\nA super simple \u0026 lightweight Node.js proxy to send `repository_dispatch` events to GitHub from a Strapi Webhook.\n\nUseful when you want to run a GitHub Actions workflow when changes are made in Strapi.\n\n## Usage\n\n1 - Ensure your GitHub Actions workflow file handles the \"repository_dispatch\" event with your custom type:\n\n```yml\nname: Deploy\non:\n  repository_dispatch:\n    types: [strapi_updated]\n```\n\n2 - Create a GitHub Personal access token with `repo` scope\n\n3 - Deploy the service to your server, for example:\n\n```bash\ndocker run \\\n  --publish 5000:5000 \\\n  --env GITHUB_TOKEN=YOURTOKEN \\\n  ghcr.io/badsyntax/strapi-webhook-actions-proxy:latest\n```\n\n(View [available docker tags](https://github.com/users/badsyntax/packages/container/package/strapi-webhook-actions-proxy), or just use `latest`.)\n\n4 - Create a new Webhook in Strapi that points to the service with the following query params:\n\n- `event_type`: Any string. This value must match the `repository_dispatch` type specified in your GitHub Actions workflow file.\n- `repo`: GitHub `username/repo`\n\nFor example:\n\n```\nhttp://actions-proxy:5000/api?event_type=strapi_updated\u0026repo=username/awesome-website\n```\n\n## Background\n\nYou can't point Strapi webhooks to the [repository dispatch event endpoint](https://docs.github.com/en/rest/reference/repos#create-a-repository-dispatch-event) as the webook request body is not compatible with the dispatches endpoint, thus a proxy is required.\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md)\n\n## License\n\nSee [LICENSE.md](./LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadsyntax%2Fstrapi-webhook-actions-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadsyntax%2Fstrapi-webhook-actions-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadsyntax%2Fstrapi-webhook-actions-proxy/lists"}