[MAINT] Audit and bump third-party actions still using the node20 runner

Aperta
#364 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
github-actions
Ambito
ci-cd

Direzione di ricerca

Start with the pinned action.yml of each third-party action: dorny/paths-filter in coding-standard-baseline/action.yml, tj-actions/changed-files in setup-di-compile/action.yml, and google-github-actions/release-please-action in .github/workflows/release-please.yml. Check each one's runs.using value and whether a node24 release exists. Done means no node16 or node20 deprecation warnings in CI and tj-actions/changed-files is either replaced or pinned to a verified SHA. The choice between replacing and SHA-pinning needs a maintainer decision first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Background

GitHub Actions has deprecated Node 20 in favor of Node 24 as the runtime for JavaScript actions. Actions whose action.yml declares runs.using: node20 will emit deprecation warnings and eventually fail to execute on hosted runners. Older runtimes (node16, node12) have already had hard cutoffs in the past and any references to them should be considered urgent.

Our own supported-version/action.yml is already on node24 (good). The third-party actions we depend on need to be audited and bumped where a node24-capable release is available.

Current runtime per pinned reference

Verified by reading each action.yml at the pinned ref:

Action Pinned to Runtime Used in
dorny/paths-filter v2 node16 ⚠️ coding-standard-baseline/action.yml
tj-actions/changed-files v39 node20 setup-di-compile/action.yml
google-github-actions/release-please-action v4 node20 .github/workflows/release-please.yml
shivammathur/setup-php v2 node24 ✅ (floating tag was updated upstream — no action needed) setup-magento, unit-test, coding-standard-baseline, setup-di-compile, several workflows
php-actions/composer v6 composite (no JS runtime) nx-integration-tests-setup/action.yml
Also on node16 (covered by #363)

The actions/*@v3 pins covered in #363 are also on node16, not just behind on majors:

  • actions/checkout@v3 (used in supported-services-matrix-calculator, setup-di-compile)
  • actions/cache@v3 (used in cache-magento, nx-integration-tests-setup, unit-test)
  • actions/cache/save@v3 (used in nx-integration-tests-setup)

Bumping those to v4/v6 per #363 clears the last node16 references from this repo.

Special case: tj-actions/changed-files@v39

tj-actions/* was compromised in March 2025 (CVE-2025-30066) — any pin to a tag-based version in that namespace is risky regardless of node runtime. This action should be either:

  • Replaced (e.g. dorny/paths-filter already covers a similar use case elsewhere in this repo, so consider consolidating), or
  • Re-pinned to a verified-clean commit SHA.

Acceptance

  • dorny/paths-filter bumped to a release on node24 (or current node20 if node24 isn't yet available upstream)
  • tj-actions/changed-files@v39 is replaced or SHA-pinned
  • google-github-actions/release-please-action bumped to a node24 release if/when available
  • No GitHub Actions deprecation warnings about node16 or node20 in CI logs for this repo

Related

  • #363 — bumping outdated first-party actions/* dependencies (also clears node16 references)
Lingua principale
TypeScript
Stelle
12
Fork
15
Merge medio
3g 15h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mage-os/github-actions

Tutte le issue di mage-os/github-actions

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.