Generate key pair for www-data
sudo -u www-data:www-data ssh-keygen -t rsa
Keys will be created in /var/www/.ssh/
Add id_rsa.pub to github deploy keys
All project files and directories to be triggered from github webhook should be owned by www-data user