Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 1.5 KB

File metadata and controls

30 lines (15 loc) · 1.5 KB

github-webhook-mirror

Sends a repository_dispatch event back to a GitHub repo when a webhook event is sent. This allows Actions to run on events that are not yet supported as direct triggers such as code_scanning_alert.

Usage

Create a GitHub app on your organisation

  1. Set an appropriate name and Homepage URL
Screenshot 2023-12-13 at 15 02 32
  1. Uncheck the Webhook active checkbox, we will come back to this later
Screenshot 2023-12-13 at 15 02 39
  1. Set the app permissions to allow Read and write for repository contents. This allows the Probot app to send repository_dispatch events to the source repository.
Screenshot 2023-12-13 at 15 03 19
  1. Generate a private key for the app.
Screenshot 2023-12-13 at 15 03 51
  1. Don't forget to install the app on an organisation.
Screenshot 2023-12-13 at 16 15 01

Create an Azure Function App