diff --git a/runbot/controllers/hook.py b/runbot/controllers/hook.py index a26294e4..34d43652 100644 --- a/runbot/controllers/hook.py +++ b/runbot/controllers/hook.py @@ -8,7 +8,7 @@ from odoo.http import request class RunbotHook(http.Controller): - @http.route(['/runbot/hook/'], type='http', auth="public", website=True) + @http.route(['/runbot/hook/'], type='http', auth="public", website=True, csrf=False) def hook(self, repo_id=None, **post): # TODO if repo_id == None parse the json['repository']['ssh_url'] and find the right repo repo = request.env['runbot.repo'].sudo().browse([repo_id])