Skip to content

Commit 53868a8

Browse files
Fix client crash with fix for GHSA-q6h8-4j2v-pjg4 (#2432)
1 parent 08790d2 commit 53868a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/controlplane/handlers_githubwebhooks.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ func (s *Server) registerWebhookForRepository(
236236
secret := s.cfg.WebhookConfig.WebhookSecret
237237

238238
regResult := &pb.RegisterRepoResult{
239+
// We will overwrite this later when we've looked it up from the provider,
240+
// but existing clients expect a message here, so let's add one.
241+
Repository: &pb.Repository{
242+
Name: repo.Name, // Not normalized, from client
243+
Owner: repo.Owner, // Not normalized, from client
244+
},
239245
Status: &pb.RegisterRepoResult_Status{
240246
Success: false,
241247
},

0 commit comments

Comments
 (0)