@@ -523,7 +523,7 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
523
523
config .Inbound .Allowlist = append (config .Inbound .Allowlist ,
524
524
// get contents of file
525
525
AllowlistItem {
526
- URL : gitHubBaseUrl .JoinPath ("/repos/:repo/contents/:filepath " ).String (),
526
+ URL : gitHubBaseUrl .JoinPath ("/repos/:repo/contents/* " ).String (),
527
527
Methods : ParseHttpMethods ([]string {"GET" }),
528
528
SetRequestHeaders : headers ,
529
529
},
@@ -667,7 +667,7 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
667
667
config .Inbound .Allowlist = append (config .Inbound .Allowlist ,
668
668
// get contents of file
669
669
AllowlistItem {
670
- URL : gitLabBaseUrl .JoinPath ("/projects/:project/repository/files/:filepath " ).String (),
670
+ URL : gitLabBaseUrl .JoinPath ("/projects/:project/repository/files/* " ).String (),
671
671
Methods : ParseHttpMethods ([]string {"GET" }),
672
672
SetRequestHeaders : headers ,
673
673
},
@@ -777,7 +777,7 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
777
777
// get contents of file
778
778
config .Inbound .Allowlist = append (config .Inbound .Allowlist ,
779
779
AllowlistItem {
780
- URL : bitBucketBaseUrl .JoinPath ("/projects/:project/repos/:repo/browse/:filepath " ).String (),
780
+ URL : bitBucketBaseUrl .JoinPath ("/projects/:project/repos/:repo/browse/* " ).String (),
781
781
Methods : ParseHttpMethods ([]string {"GET" }),
782
782
SetRequestHeaders : headers ,
783
783
},
0 commit comments