keiko233:Clash Nyanpasu 工作流锁定审查与合并前风险清单
keiko233 静态审查 Clash Nyanpasu PR:确认 actions.lock 的 16 个 SHA、可复用工作流 secret 传递和 push 凭据没有立即阻塞项,但指出 Renovate 不会同步锁文件、nightly/release/publish/daily 工作流未实际验证、两处 action ref 会改变代码、存储发布任务仍过度转发 secret、两个 action 使用浮动 v1、git fetch 未认证,以及提交标题超长;建议先制定锁文件自动更新或关闭 GitHub Actions 小版本自动合并的方案。
作者原文@keiko233Thanks for this. I checked the diff statically: all 16 SHAs in
actions.lockmatch their upstream tags,greenhat616/update-tagis the same repository aslibnyanpasu/update-tag(v1.2.5 is the commitv1already pointed at), every secret a callee reads is declared and forwarded, no caller grants less than its callee requests, and no job that pushes with git lost its credentials. Nothing blocking, but a few things to settle before merging.1. Renovate will desync
actions.lock(.github/workflows/actions.lock)The lockfile requires every
uses:ref to be listed, butrenovate.jsonstill bumps action versions withdefault:automergeMinor, and nothing regenerates the lock. A bump to an actionci.ymldoes not use (for examplesoftprops/action-gh-releaseindeps-update-tag.yamlandpublish.yml) passes required CI, automerges, and the next nightly or release run is then rejected. For actionsci.ymldoes use, every Renovate PR fails until someone runsgh actions-lockby hand;taiki-e/install-actionalone releases several times a week. GitHub's docs only mention Dependabot for lockfile updates. This needs a plan (disable automerge forgithub-actions, or automate the relock), and the relock step belongs indocs/development/workflow.md, not only in the PR body.2. Release, nightly, publish and daily workflows are untested
PR CI only exercises
ci.yml. A caller/callee permission or secret mismatch in a reusable workflow fails the whole run at startup, so the first real validation would be the next nightly or a published release. I found no mismatch by reading, but nothing has executed.3. Two "narrowed" refs change the action code (
daily.yml,deps-build-linux.yaml)
oleksiyrudenko/gha-git-credentialsv2.1 -> v2.1.2 is 17 commits ahead on a diverged history (rebuilt dist, Node 12 -> 20 runtime), andcargo-bins/cargo-binstallmain-> v1.26.2 is a different commit too. The other pins resolve to the commit the major tag already pointed at. Both manifest jobs rely on the credentials action for their push, so please call these two out as upgrades rather than pins.4. The storage publisher still receives all nine secrets per backend (
target-dev-build.yaml,target-release-build.yaml)Each of the three
deps-publish-storagecalls (prepare, sourceforge, telegram) forwards the full set, so the telegram job still holdsSOURCEFORGE_SSH_KEYand the sourceforge and prepare jobs still hold the Telegram credentials.5. Two actions stay on floating
v1tags
robinraju/release-downloader@v1(deps-create-updater.yaml) andmknejp/delete-release-assets@v1(deps-delete-releases.yaml). They are commit-locked by the lockfile, so this is mostly an inconsistency with the description.6.
git fetch --tagsnow runs unauthenticated (deps-create-updater.yaml)Fine for this public repository; it would fail in a private fork or mirror.
7. Subject length
The first commit's subject is 73 characters and the PR title is 108; the repository limit is 72.