Skip to content

Commit b980f47

Browse files
Restore /namespaces/:namespace allowlist (#114)
* Restore /namespaces/:namespace allowlist The SCM driver users both /namespaces/ and /groups/ in different places but this particular endpoint uses namespaces as there is no groups equivalent. --------- Signed-off-by: Alexis Grant <[email protected]>
1 parent 5833c54 commit b980f47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ func LoadConfig(configFiles []string, deploymentId int) (*Config, error) {
583583
Methods: ParseHttpMethods([]string{"DELETE"}),
584584
SetRequestHeaders: headers,
585585
},
586-
// Group info
586+
// Namespace info
587587
AllowlistItem{
588-
URL: gitLabBaseUrl.JoinPath("/groups/:namespace").String(),
588+
URL: gitLabBaseUrl.JoinPath("/namespaces/:namespace").String(),
589589
Methods: ParseHttpMethods([]string{"GET"}),
590590
SetRequestHeaders: headers,
591591
},

0 commit comments

Comments
 (0)