[MAINT] Bump outdated `actions/*` references for version consistency

未关闭
#363 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
65/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
冷清
技术栈
github-actions
领域
ci-cd

调研方向

The old references are listed per file in the issue: the composite actions cache-magento/action.yml, nx-integration-tests-setup/action.yml, unit-test/action.yml, supported-services-matrix-calculator/action.yml and setup-di-compile/action.yml, plus the workflows under .github/workflows/ such as integration.yaml. Start by grepping for actions/cache@, actions/cache/save@ and actions/checkout@ to confirm the list. Done means no v3 cache references remain, checkout is pinned to v6 everywhere, and the workflows still pass on a test run.

由索引模型根据 Issue 内容生成。

描述

Background

While auditing the workflows and composite actions in this repo, I noticed wide major-version drift in the first-party actions/* dependencies. Most of these have new majors available with security fixes, smaller bundle sizes, and updated Node runners.

Findings

Action Versions currently in use Latest
actions/cache v3, v4 v4
actions/cache/restore v4 v4
actions/cache/save v3 v4
actions/checkout v3, v4, v6 v6
actions/upload-artifact v4 v4

Files where the older versions appear:

  • cache-magento/action.yml — actions/cache@v3
  • nx-integration-tests-setup/action.yml — actions/cache@v3, actions/cache/save@v3
  • unit-test/action.yml — actions/cache@v3
  • supported-services-matrix-calculator/action.yml — actions/checkout@v3
  • setup-di-compile/action.yml — actions/checkout@v3
  • .github/workflows/_internal-get-composer-version.yaml — actions/checkout@v4
  • .github/workflows/_internal-get-magento-version.yaml — actions/checkout@v4
  • .github/workflows/_internal-integration.yaml — actions/checkout@v4
  • .github/workflows/_internal-semver-compare.yaml — actions/checkout@v4
  • .github/workflows/_internal-setup-magento.yaml — actions/checkout@v4
  • .github/workflows/_internal-unit.yaml — actions/checkout@v4
  • .github/workflows/_internal_test_actions.yaml — actions/checkout@v4
  • .github/workflows/full-integration-tests.yaml — actions/checkout@v4
  • .github/workflows/integration.yaml — actions/checkout@v4, actions/cache@v4, actions/upload-artifact@v4
  • (_internal-coding-standard.yaml and sansec-ecomscan.yml already use actions/checkout@v6)

Proposed change

Standardize on the latest major across the repo:

  • actions/cache → v4 everywhere (including the cache/save and cache/restore sub-paths)
  • actions/checkout → v6 everywhere
  • actions/upload-artifact → already on v4

Why

  • Reduces the surface area of the GitHub Actions allowlist consumers need to maintain (one major per action instead of three).
  • Pulls in updated Node runtimes and any security fixes that have shipped in newer majors.
  • Makes future audits (like this one) trivially mechanical.

Out of scope

Third-party actions (shivammathur/setup-php, dorny/paths-filter, tj-actions/changed-files, etc.) — those will be handled in a separate issue covering the Node 20 → Node 24 migration.

主要语言
TypeScript
星标
12
派生
15
平均合并
3 天 15 小时
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mage-os/github-actions 的其他 Issue

查看 mage-os/github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。