Skip to content

Commit 5da21bf

Browse files
authored
fix(github): update token handling to use the first token from a comma-separated list (#8562)
1 parent 314124a commit 5da21bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)