agent-exec transport efb497ddb56c8a0766c1a263c0fe3fdc/566cc005aff7
ci / svc-realcombo (pull_request) Failing after 3m24s
ci / test (pull_request) Successful in 12m45s
ci / test-pg (pull_request) Successful in 14m49s

This commit is contained in:
agent-exec-transport
2026-10-23 14:53:32 +00:00
parent 7f79399354
commit 0df91e1ead
+15
View File
@@ -765,4 +765,19 @@ jobs:
# CI 无 SSH key:把受信基址与 URL 级 token 头经环境交给套件(仅环境传递)。
export SVC_CI_GIT_SERVER="${GITHUB_SERVER_URL%/}"
export SVC_CI_GIT_TOKEN="${SUBMODULE_TOKEN}"
# 套件经 SVC_RDM_SRC_DIR 物化嵌套 pins 时,RDM .gitmodules 的 SSH URL
# (新旧两形态)无凭据;按本 job Clone 步骤同源 insteadOf 改写到受信基址并带 token 头。
SERVER="$(printf '%s' "$GITHUB_SERVER_URL" | sed 's:/*$::')"
scheme="${GITHUB_SERVER_URL%%://*}"
export GIT_CONFIG_COUNT=5
export GIT_CONFIG_KEY_0="protocol.$scheme.allow"
export GIT_CONFIG_VALUE_0="always"
export GIT_CONFIG_KEY_1="http.$SERVER/.extraheader"
export GIT_CONFIG_VALUE_1="AUTHORIZATION: token $SUBMODULE_TOKEN"
export GIT_CONFIG_KEY_2="url.$SERVER/weichen/.insteadOf"
export GIT_CONFIG_VALUE_2="ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/"
export GIT_CONFIG_KEY_3="url.$SERVER/weichen/.insteadOf"
export GIT_CONFIG_VALUE_3="ssh://git@gitea.naitangbaobao.cn:52222/weichen/"
export GIT_CONFIG_KEY_4="core.hooksPath"
export GIT_CONFIG_VALUE_4="/dev/null"
python3 -m unittest tests.test_svc_realcombo -v