I've finally found something that seemed to solve the issue.
In GitHub project webhook settings I've changed the content type to application /json and everything seems to work now.