Skip to content

Commit

Permalink
Fix client crash with fix for GHSA-q6h8-4j2v-pjg4 (#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson authored Feb 26, 2024
1 parent 08790d2 commit 53868a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/controlplane/handlers_githubwebhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ func (s *Server) registerWebhookForRepository(
secret := s.cfg.WebhookConfig.WebhookSecret

regResult := &pb.RegisterRepoResult{
// We will overwrite this later when we've looked it up from the provider,
// but existing clients expect a message here, so let's add one.
Repository: &pb.Repository{
Name: repo.Name, // Not normalized, from client
Owner: repo.Owner, // Not normalized, from client
},
Status: &pb.RegisterRepoResult_Status{
Success: false,
},
Expand Down

0 comments on commit 53868a8

Please sign in to comment.