@@ -436,6 +436,17 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
436
436
}
437
437
438
438
config .Inbound .Allowlist = append (config .Inbound .Allowlist ,
439
+ // Group webhooks
440
+ AllowlistItem {
441
+ URL : gitLabBaseUrl .JoinPath ("/groups/:namespace/hooks" ).String (),
442
+ Methods : ParseHttpMethods ([]string {"GET" , "POST" }),
443
+ SetRequestHeaders : headers ,
444
+ },
445
+ AllowlistItem {
446
+ URL : gitLabBaseUrl .JoinPath ("/groups/:namespace/hooks/:hook" ).String (),
447
+ Methods : ParseHttpMethods ([]string {"DELETE" }),
448
+ SetRequestHeaders : headers ,
449
+ },
439
450
// Group info
440
451
AllowlistItem {
441
452
URL : gitLabBaseUrl .JoinPath ("/namespaces/:namespace" ).String (),
@@ -448,6 +459,23 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
448
459
Methods : ParseHttpMethods ([]string {"GET" }),
449
460
SetRequestHeaders : headers ,
450
461
},
462
+ // Repo webhooks
463
+ AllowlistItem {
464
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/hooks" ).String (),
465
+ Methods : ParseHttpMethods ([]string {"POST" }),
466
+ SetRequestHeaders : headers ,
467
+ },
468
+ AllowlistItem {
469
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/hooks/:hook" ).String (),
470
+ Methods : ParseHttpMethods ([]string {"DELETE" }),
471
+ SetRequestHeaders : headers ,
472
+ },
473
+ // Get a repo member
474
+ AllowlistItem {
475
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/members/all/:user" ).String (),
476
+ Methods : ParseHttpMethods ([]string {"GET" }),
477
+ SetRequestHeaders : headers ,
478
+ },
451
479
// MR info
452
480
AllowlistItem {
453
481
URL : gitLabBaseUrl .JoinPath ("/projects/:project/merge_requests" ).String (),
@@ -496,6 +524,12 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
496
524
Methods : ParseHttpMethods ([]string {"PUT" }),
497
525
SetRequestHeaders : headers ,
498
526
},
527
+ // Get reactions to comments
528
+ AllowlistItem {
529
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/merge_requests/:number/discussions/:discussion/notes/:note/award_emoji" ).String (),
530
+ Methods : ParseHttpMethods ([]string {"GET" }),
531
+ SetRequestHeaders : headers ,
532
+ },
499
533
)
500
534
501
535
if config .Inbound .GitLab .AllowCodeAccess {
@@ -512,6 +546,18 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
512
546
Methods : ParseHttpMethods ([]string {"GET" }),
513
547
SetRequestHeaders : headers ,
514
548
},
549
+ // Compare branches
550
+ AllowlistItem {
551
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/repository/compare" ).String (),
552
+ Methods : ParseHttpMethods ([]string {"GET" }),
553
+ SetRequestHeaders : headers ,
554
+ },
555
+ // Update commit status
556
+ AllowlistItem {
557
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/statuses/:commit" ).String (),
558
+ Methods : ParseHttpMethods ([]string {"GET" }),
559
+ SetRequestHeaders : headers ,
560
+ },
515
561
)
516
562
}
517
563
}
0 commit comments