{"id":22918321,"url":"https://github.com/gateixeira/retrigger-webhook-action","last_synced_at":"2025-04-01T13:17:14.735Z","repository":{"id":209718472,"uuid":"724105944","full_name":"gateixeira/retrigger-webhook-action","owner":"gateixeira","description":"Retrigger GitHub webhook events","archived":false,"fork":false,"pushed_at":"2024-06-10T09:21:58.000Z","size":686,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T08:14:32.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gateixeira.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T12:09:35.000Z","updated_at":"2023-11-28T19:46:10.000Z","dependencies_parsed_at":"2023-12-27T12:29:35.772Z","dependency_job_id":"9cab1af9-c026-48e6-8b25-4847f9df2cf7","html_url":"https://github.com/gateixeira/retrigger-webhook-action","commit_stats":null,"previous_names":["gateixeira/retrigger-webhook-action"],"tags_count":0,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gateixeira%2Fretrigger-webhook-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gateixeira%2Fretrigger-webhook-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gateixeira%2Fretrigger-webhook-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gateixeira%2Fretrigger-webhook-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gateixeira","download_url":"https://codeload.github.com/gateixeira/retrigger-webhook-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644099,"owners_count":20810687,"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":[],"created_at":"2024-12-14T06:29:59.866Z","updated_at":"2025-04-01T13:17:14.709Z","avatar_url":"https://github.com/gateixeira.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retrigger Webhook Action\n\n![Check Dist/](https://github.com/gateixeira/retrigger-webhook-action/workflows/Check%20Dist%2F/badge.svg)\n![CodeQL](https://github.com/gateixeira/retrigger-webhook-action/workflows/CodeQL/badge.svg)\n\n---\n\nThis GitHub Action retriggers webhooks in a given repository.\n\nIt abstracts the process described in the GitHub documentation [here](https://docs.github.com/en/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-repository-webhook)\n\nIt will look for the provided variable in the repository to fetch when the redelivery was previously run and will retrigger the webhooks once per `guid` to not retrigger both the original and any new redelivery attempt.\n\n---\n\n## Inputs\n\n| NAME                            | DESCRIPTION                                                                                    | TYPE     | REQUIRED | DEFAULT |\n| ------------------------------- | ---------------------------------------------------------------------------------------------- | -------- | -------- | ------- |\n| `token`                         | GitHub access token (Scope: classic = `repo`)                                                  | `string` | `true`   | `N/A`   |\n| `repo`                          | Name of the repository where the webhook is configured.                                        | `string` | `true`   | `N/A`   |\n| `owner`                         | Owner of the repository where the webhook is configured.                                       | `string` | `true`   | `N/A`   |\n| `last_redelivery_variable_name` | The name of the variable that will store the last redelivery timestamp.                        | `string` | `true`   | `N/A`   |\n| `webhook_id`                    | The ID to filter for a specific webhook.                                                       | `string` | `false`  | `N/A`   |\n| `base_url`                      | The base URL for an Enterprise Server instance.                                                | `string` | `false`  | `N/A`   |\n\nKeep in mind that `GITHUB_TOKEN` does not have sufficient permissions to redeliver webhooks. For fine-grained personal access tokens, grant the token:\n- Access to the repository where the webhook was created\n- Write access to the repository webhooks permission\n- Write access to the repository variables permission\n\n---\n\n## Usage example\n\nAdd the following snippet to an existing workflow file\n\n```yml\n\n      - name: Run redelivery\n        env:\n          token: ${{ secrets.PAT_TOKEN }}\n          owner: ${{ github.repository_owner }}\n          repo: ${{ github.event.repository.name }}\n          # webhook_id: 'YOUR_HOOK_ID'\n          last_redelivery_variable_name: 'LAST_REDELIVERY'\n        uses: gateixeira/retrigger-webhook-action@main\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgateixeira%2Fretrigger-webhook-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgateixeira%2Fretrigger-webhook-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgateixeira%2Fretrigger-webhook-action/lists"}