Repository navigation
chore(security): pin actions and configure Dependabot - #2212
Conversation
Pin third-party CI code to immutable SHAs and let Dependabot keep Actions and root npm dependencies current.\n\nRefs apache#2207
7b1750d to
68bea5f
Compare
|
Thanks for this — I verified it end to end and the work is solid: all 41 One optional nitpick: P3 — Merging — nice supply-chain hygiene. |
English
Summary
Pinned Actions
actions/checkoutv4.4.011d5960a326750d5838078e36cf38b85af677262actions/setup-nodev4.4.049933ea5288caeca8642d1e84afbd3f7d6820020actions/upload-artifactv4.6.2ea165f8d65b6e75b540449e92b4886f43607fa02actions/download-artifactv4.3.0d3f86a106a0bac45b974a628896c90dbdf5c8093astral-sh/setup-uvv6.8.0d0cc045d04ccac9d8b7881df0226f9e82c39688edocker/setup-buildx-actionv3.12.08d2750c68a42422c14e847fe6c8ac0403b4cbd6fEach SHA was resolved from the corresponding official stable release tag. All Actions stay within their existing major version.
Security boundary
Workflow triggers, jobs, steps, permissions, inputs, and execution logic are unchanged. Dependabot is limited to weekly npm and GitHub Actions updates with
open-pull-requests-limit: 10; npm minor and patch updates share one group, while major updates remain independent. This PR does not add auto-merge, automatic approval, audit workflows, CodeQL, advisory remediation, application changes, or new dependencies.Verification
actionlint .github/workflows/*.yml— passednpm run test:scripts— 115 passeduses:references use full 40-character SHAs with exact version comments; no tag-only references remainglm-5.2:cloudconfiguration review — no findingsgit diff --check origin/main...HEAD— passed简体中文
摘要
固定的 Actions
actions/checkoutv4.4.011d5960a326750d5838078e36cf38b85af677262actions/setup-nodev4.4.049933ea5288caeca8642d1e84afbd3f7d6820020actions/upload-artifactv4.6.2ea165f8d65b6e75b540449e92b4886f43607fa02actions/download-artifactv4.3.0d3f86a106a0bac45b974a628896c90dbdf5c8093astral-sh/setup-uvv6.8.0d0cc045d04ccac9d8b7881df0226f9e82c39688edocker/setup-buildx-actionv3.12.08d2750c68a42422c14e847fe6c8ac0403b4cbd6f每个 SHA 都由对应 Action 的官方稳定 release tag 解析得到。所有 Action 都保持在原有 major 版本内。
安全边界
Workflow 的触发条件、job、step、权限、input 和执行逻辑均未改变。Dependabot 仅每周维护 npm 与 GitHub Actions,两个 ecosystem 的
open-pull-requests-limit均为 10;npm minor 与 patch 更新使用同一分组,major 更新保持独立。本 PR 不添加 auto-merge、自动审批、依赖审计 workflow、CodeQL、advisory 修复、应用修改或新依赖。验证
actionlint .github/workflows/*.yml— 通过npm run test:scripts— 115 项通过uses:引用均使用完整 40 字符 SHA 和准确版本注释,不存在剩余 tag-only 引用glm-5.2:cloud配置 review — 无 findingsgit diff --check origin/main...HEAD— 通过Part of #2207