From 9c6f735df0c6a92ba712a0d11383403a35c12491 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 6 Dec 2025 00:36:46 +0000 Subject: [PATCH] Fix loss of context in POST handler. This caused the principal to not be available when creating the new audit record. --- src/pages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages.go b/src/pages.go index fb93d26..8fc4857 100644 --- a/src/pages.go +++ b/src/pages.go @@ -762,7 +762,7 @@ func postPage(w http.ResponseWriter, r *http.Request) error { result := UpdateFromRepository(ctx, webRoot, repoURL, auth.branch) resultChan <- result observeSiteUpdate("webhook", &result) - }(context.Background()) + }(r.Context()) var result UpdateResult select {