From 7acadaee950e2149e3a0b1dec906abedacaf0c22 Mon Sep 17 00:00:00 2001 From: Japdoor Date: Tue, 2 Sep 2025 11:42:39 +0000 Subject: [PATCH] fix(github): update token handling to use the first token from a comma-separated list --- backend/plugins/github/impl/impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/plugins/github/impl/impl.go b/backend/plugins/github/impl/impl.go index 6c25cf2388a..e09779a3dcd 100644 --- a/backend/plugins/github/impl/impl.go +++ b/backend/plugins/github/impl/impl.go @@ -267,7 +267,7 @@ func (p Github) GetDynamicGitUrl(taskCtx plugin.TaskContext, connectionId uint64 return "", err } - newUrl, err := replaceAcessTokenInUrl(repoUrl, connection.Token) + newUrl, err := replaceAcessTokenInUrl(repoUrl, strings.Split(connection.Token, ",")[0]) if err != nil { return "", err }