Skip to content

Commit bd99737

Browse files
committed
missing gh allowlist item
1 parent 37bda22 commit bd99737

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pkg/config.go

+15
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,21 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
539539
Methods: ParseHttpMethods([]string{"GET"}),
540540
SetRequestHeaders: headers,
541541
},
542+
AllowlistItem{
543+
URL: gitHubBaseUrl.JoinPath("/app/hook/config").String(),
544+
Methods: ParseHttpMethods([]string{"GET"}),
545+
SetRequestHeaders: headers,
546+
},
547+
AllowlistItem{
548+
URL: gitHubBaseUrl.JoinPath("/repos/:org/:repo/check-runs").String(),
549+
Methods: ParseHttpMethods([]string{"POST"}),
550+
SetRequestHeaders: headers,
551+
},
552+
AllowlistItem{
553+
URL: gitHubBaseUrl.JoinPath("/repos/:org/:repo/check-runs/:check_run_id").String(),
554+
Methods: ParseHttpMethods([]string{"PATCH"}),
555+
SetRequestHeaders: headers,
556+
},
542557
)
543558

544559
if config.Inbound.GitHub.AllowCodeAccess {

0 commit comments

Comments
 (0)