From 54621226b0ad666642d5f86eb8571a0bdf2e8ae9 Mon Sep 17 00:00:00 2001 From: Yiteng Niu <6831097+niukuo@users.noreply.github.com> Date: Tue, 4 Nov 2025 01:03:47 -0800 Subject: [PATCH] [None][infra] update github token name Signed-off-by: Yiteng Niu <6831097+niukuo@users.noreply.github.com> --- jenkins/L0_MergeRequest.groovy | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jenkins/L0_MergeRequest.groovy b/jenkins/L0_MergeRequest.groovy index 6d09640efb4..097818b95b8 100644 --- a/jenkins/L0_MergeRequest.groovy +++ b/jenkins/L0_MergeRequest.groovy @@ -514,16 +514,17 @@ def getGithubMRChangedFile(pipeline, githubPrApiUrl, function, filePath="") { def result = null def pageId = 0 withCredentials([ - string( - credentialsId: 'github-token-trtllm-ci', - variable: 'GITHUB_API_TOKEN' + usernamePassword( + credentialsId: 'github-cred-trtllm-ci', + usernameVariable: 'NOT_USED_YET', + passwordVariable: 'GITHUB_API_TOKEN' ), ]) { while(true) { pageId += 1 def rawDataJson = pipeline.sh( script: """ - curl --header "Authorization: Bearer $GITHUB_API_TOKEN" \ + curl --header "Authorization: Bearer \${GITHUB_API_TOKEN}" \ --url "${githubPrApiUrl}/files?page=${pageId}&per_page=20" """, returnStdout: true