DotnetDude
DotnetDude

Reputation: 11807

Adding a post receive hook in github

I'd like to add a post receive server side hook to a private repo in github.com. I am aware of the "webhooks" feature but I'd like to add a powershell script as a part of the post receive hook. I don't see a way to do it on github's website.

Upvotes: 1

Views: 376

Answers (1)

Nevik Rehnel
Nevik Rehnel

Reputation: 51935

This is not possible. It would require Github to allow user-submitted scripts to run on their servers, which poses a considerable security risk.

If you want actions triggered upon push-to-Github, you will need to set up your own server which gets notified via a Webhook, and then (if necessary) pulls from Github and executes the actions you need it to do.

Upvotes: 3

Related Questions