@@ -554,6 +554,41 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
554
554
Methods : ParseHttpMethods ([]string {"PATCH" }),
555
555
SetRequestHeaders : headers ,
556
556
},
557
+ AllowlistItem {
558
+ URL : gitHubBaseUrl .JoinPath ("/orgs/:org/teams" ).String (),
559
+ Methods : ParseHttpMethods ([]string {"GET" }),
560
+ SetRequestHeaders : headers ,
561
+ },
562
+ AllowlistItem {
563
+ URL : gitHubBaseUrl .JoinPath ("/orgs/:org/teams/:team_slug/members" ).String (),
564
+ Methods : ParseHttpMethods ([]string {"GET" }),
565
+ SetRequestHeaders : headers ,
566
+ },
567
+ AllowlistItem {
568
+ URL : gitHubBaseUrl .JoinPath ("/orgs/:org/members" ).String (),
569
+ Methods : ParseHttpMethods ([]string {"GET" }),
570
+ SetRequestHeaders : headers ,
571
+ },
572
+ AllowlistItem {
573
+ URL : gitHubBaseUrl .JoinPath ("/users/:username" ).String (),
574
+ Methods : ParseHttpMethods ([]string {"GET" }),
575
+ SetRequestHeaders : headers ,
576
+ },
577
+ AllowlistItem {
578
+ URL : gitHubBaseUrl .JoinPath ("/orgs/:org/hooks" ).String (),
579
+ Methods : ParseHttpMethods ([]string {"GET" }),
580
+ SetRequestHeaders : headers ,
581
+ },
582
+ AllowlistItem {
583
+ URL : gitHubBaseUrl .JoinPath ("/orgs/:org/hooks/:hook_id" ).String (),
584
+ Methods : ParseHttpMethods ([]string {"DELETE" , "PATCH" }),
585
+ SetRequestHeaders : headers ,
586
+ },
587
+ AllowlistItem {
588
+ URL : gitHubBaseUrl .JoinPath ("/repos/:org/:repo/statuses/:commit" ).String (),
589
+ Methods : ParseHttpMethods ([]string {"POST" }),
590
+ SetRequestHeaders : headers ,
591
+ },
557
592
)
558
593
559
594
if config .Inbound .GitHub .AllowCodeAccess {
0 commit comments