已关闭
【安全】【敏感数据生命周期】【SENS-03:含 token 的 URL 明文持久化写入工作区 .git/config】 #14
YanZhaohong创建于  9月29日关闭于  6 天前
YanZhaohong
YanZhaohong成员
9月29日 创建

index.js:167-179

含 token 的 URL 经 git remote set-url 被 git 明文写进被检仓工作区的 .git/config,任务结束不还原也不清理,明文认证凭据长期留在执行机工作区。

建议:任务结束在 finally 中还原 remote URL,或改用 credential helper。

likedislike
mafeifeimafeifei成员
27 天前 关联了pull request:fix(security): inject gc_token via GIT_ASKPASS instead of remote set-url
mafeifeimafeifei成员
27 天前 关联了pull request:fix(security): clean up default temp report dir on task exit
YanZhaohongYanZhaohong成员
16 天前 关联了pull request:openLiBing代码仓代码度量扫描插件版本升级至v1.0.3
OopenLiBingCI成员
6 天前 关闭了 issue