Skip to content

Commit d56b799

Browse files
committed
more
1 parent bd99737 commit d56b799

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pkg/config.go

+35
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,41 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
554554
Methods: ParseHttpMethods([]string{"PATCH"}),
555555
SetRequestHeaders: headers,
556556
},
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+
},
557592
)
558593

559594
if config.Inbound.GitHub.AllowCodeAccess {

0 commit comments

Comments
 (0)