From a06b89e2196aac20881359866de02d7d06ac7a23 Mon Sep 17 00:00:00 2001 From: Herlon Aguiar Date: Tue, 14 Dec 2021 17:17:03 +0100 Subject: [PATCH] fixed webhook processing context --- cmd/server/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/run.go b/cmd/server/run.go index 4a9f862..1eaf21b 100644 --- a/cmd/server/run.go +++ b/cmd/server/run.go @@ -128,7 +128,7 @@ func WebhookHandler(webhookSecret string, sonar *sonarqube2.Sonarqube, gh scm2.S queue <- func() error { logrus.Infoln("Processing", webhook.Project.Key, "->", webhook.Branch.Name) - if err := PublishIssues(req.Context(), sonar, gh, webhook.Project.Key, webhook.Branch.Name); err != nil { + if err := PublishIssues(context.Background(), sonar, gh, webhook.Project.Key, webhook.Branch.Name); err != nil { return err }