GitHub Actions · infra · fg-0237

Workflows using actions/cache v1, v2, or an old pinned SHA fail since February 1, 2025

If you see Error: This request has been automatically failed because it uses a deprecated version of `actions/cache: v4.0.2`, the cause and the fix for GitHub Actions are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Error: This request has been automatically failed because it uses a deprecated version of `actions/cache: v4.0.2`.The same error for v1 and v2 tags or SHAs older than v4.2.0 or v3.4.0Self hosted runners fail to save or restore caches after the service change
Cause
GitHub moved to a new cache service on February 1, 2025 and sunset the legacy one, so older action versions stopped working. Self hosted runners also need runner 2.231.0 or newer.
Fix
Use actions/cache v4 (or a SHA at v4.2.0 or later) and update self hosted runners.
Apply
- uses: actions/cache@v4
Affected
actions/cache below v4.2.0 or v3.4.0, and self hosted runners below 2.231.0, since 2025-02-01
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun