Skip to content

Commit 7acadae

Browse files
committed
fix(github): update token handling to use the first token from a comma-separated list
1 parent c5a4fbf commit 7acadae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎backend/plugins/github/impl/impl.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func (p Github) GetDynamicGitUrl(taskCtx plugin.TaskContext, connectionId uint64
267267
return "", err
268268
}
269269

270-
newUrl, err := replaceAcessTokenInUrl(repoUrl, connection.Token)
270+
newUrl, err := replaceAcessTokenInUrl(repoUrl, strings.Split(connection.Token, ",")[0])
271271
if err != nil {
272272
return "", err
273273
}

0 commit comments

Comments
 (0)