DEV Community

Discussion on: Workflow Automation in Git with Basic Commands

Collapse
 
svandragt profile image
Sander van Dragt

The PHP code for the GitHub webhook is insecure. Anyone can all it any number of times and bring down your site.

After you've setup the webhook please read developer.github.com/webhooks/secu... and secure your webhook with a secret!

I would also rename github.php to a .php so it's not guessable by attackers, for example using textmechanic.com/text-tools/random... to come up with a filename.

It's quite sad that I could not easily find a gist with a recommended example.