From 9dd190290650d628caebac53ac58ca32725065bc Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Thu, 14 Nov 2024 13:57:05 +0530 Subject: [PATCH] chore: no rbac for playbook webhook --- playbook/controllers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook/controllers.go b/playbook/controllers.go index 39aa368c..5fed6035 100644 --- a/playbook/controllers.go +++ b/playbook/controllers.go @@ -34,7 +34,7 @@ func RegisterRoutes(e *echo.Echo) { prefix := "playbook" playbookGroup := e.Group(fmt.Sprintf("/%s", prefix)) playbookGroup.GET("/list", HandlePlaybookList, rbac.Playbook(rbac.ActionRead)) - playbookGroup.POST("/webhook/:webhook_path", HandleWebhook, rbac.Playbook(rbac.ActionRun)) + playbookGroup.POST("/webhook/:webhook_path", HandleWebhook) playbookGroup.POST("/:id/params", HandleGetPlaybookParams, rbac.Playbook(rbac.ActionRun)) playbookGroup.GET("/events", func(c echo.Context) error {