This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 5da21bf7c fix(github): update token handling to use the first token 
from a comma-separated list (#8562)
5da21bf7c is described below

commit 5da21bf7c0c92a1028b63eef77b6fcc4cc0cba04
Author: japdoor <[email protected]>
AuthorDate: Wed Sep 3 15:47:51 2025 +0900

    fix(github): update token handling to use the first token from a 
comma-separated list (#8562)
---
 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 6c25cf238..e09779a3d 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
        }

Reply via email to