gc_token 经 OAuth URL 拼入 remote 后 git remote set-url origin 持久写入 .git/config 且用后不还原,token 残留于 runner 磁盘。
index.js:167-173(dist/index.js:179 同步)
改用 git credential helper 或 -c http.extraHeader 一次性传 token;若用 set-url,须在 finally 还原原 URL。
问题概述
gc_token 经 OAuth URL 拼入 remote 后 git remote set-url origin 持久写入 .git/config 且用后不还原,token 残留于 runner 磁盘。
问题清单
index.js:167-173(dist/index.js:179 同步)修复建议
改用 git credential helper 或 -c http.extraHeader 一次性传 token;若用 set-url,须在 finally 还原原 URL。