actions/checkout fermo alla v6 nei 25 step dei workflow condivisi #24

Closed
opened 2026-10-19 14:19:03 +00:00 by LucaZanni · 0 comments
Owner

Stato

Tutti e 25 gli step di checkout dei workflow riusabili usano actions/checkout@v6, sia nella variante gitea.com sia nella -github. Upstream la v7 è disponibile dal 18 giugno 2026 (ultima patch v7.0.1 del 20 luglio), presente su github.com/actions/checkout e sul mirror gitea.com/actions/checkout.

Valutazione del breaking change v6 → v7

La v7.0.0 introduce un solo breaking change: checkout rifiuta il codice di una PR da fork quando l'evento è pull_request_target o workflow_run, con opt-in allow-unsafe-pr-checkout: true (upstream #2454).

Non ci riguarda, per tre motivi verificati:

  1. Lo abbiamo già. Il change è stato backportato in v6.1.0, e il tag flottante v6 che usiamo punta esattamente lì (d23441a, identico su github.com e gitea.com). v6.1.0 contiene anche il fix isDefaultCheckout della 7.0.1. Il delta reale è ESM + aggiornamento dipendenze.
  2. La guardia non si attiverebbe. Si innesca solo con evento pull_request_target/workflow_run e un repository/ref esplicito. Qui i workflow sono tutti workflow_call (+ workflow_dispatch sui dependency-check) e i 25 checkout sono self-checkout nudi; i soli con with: sono i quattro *auto-release*.yml, che passano fetch-depth: 0 e token, mai ref.
  3. Nessun requisito nuovo sul runner. action.yml della v7.0.1 è identico a quello della v6.1.0: stesso using: node24, stessi input.

Fra i repository chiamanti, pull_request_target/workflow_run compaiono solo dentro node_modules di terze parti e in un workflow GitHub di electron-agentrooms, che usa checkout@v4 e non chiama le shared-actions.

Da fare

  • actions/checkout@v6 → @v7 sui 25 step
  • spostare il tag v1: i 1598 riferimenti dei repository del portale lo pinnano, senza quello la modifica non raggiunge nessuno
## Stato Tutti e 25 gli step di checkout dei workflow riusabili usano `actions/checkout@v6`, sia nella variante `gitea.com` sia nella `-github`. Upstream la v7 è disponibile dal 18 giugno 2026 (ultima patch `v7.0.1` del 20 luglio), presente su `github.com/actions/checkout` e sul mirror `gitea.com/actions/checkout`. ## Valutazione del breaking change v6 → v7 La v7.0.0 introduce un solo breaking change: `checkout` rifiuta il codice di una PR da fork quando l'evento è `pull_request_target` o `workflow_run`, con opt-in `allow-unsafe-pr-checkout: true` (upstream #2454). Non ci riguarda, per tre motivi verificati: 1. **Lo abbiamo già.** Il change è stato backportato in `v6.1.0`, e il tag flottante `v6` che usiamo punta esattamente lì (`d23441a`, identico su github.com e gitea.com). `v6.1.0` contiene anche il fix `isDefaultCheckout` della 7.0.1. Il delta reale è ESM + aggiornamento dipendenze. 2. **La guardia non si attiverebbe.** Si innesca solo con evento `pull_request_target`/`workflow_run` **e** un `repository`/`ref` esplicito. Qui i workflow sono tutti `workflow_call` (+ `workflow_dispatch` sui dependency-check) e i 25 checkout sono self-checkout nudi; i soli con `with:` sono i quattro `*auto-release*.yml`, che passano `fetch-depth: 0` e `token`, mai `ref`. 3. **Nessun requisito nuovo sul runner.** `action.yml` della v7.0.1 è identico a quello della v6.1.0: stesso `using: node24`, stessi input. Fra i repository chiamanti, `pull_request_target`/`workflow_run` compaiono solo dentro `node_modules` di terze parti e in un workflow GitHub di `electron-agentrooms`, che usa `checkout@v4` e non chiama le shared-actions. ## Da fare - [ ] `actions/checkout@v6` → `@v7` sui 25 step - [ ] spostare il tag `v1`: i 1598 riferimenti dei repository del portale lo pinnano, senza quello la modifica non raggiunge nessuno
LucaZanni added spent time 1 hour 30 minutes 2026-10-19 14:20:06 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Total Time Spent: 1 hour 30 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devops/shared-actions#24