Report #27609
[bug\_fix] Cache not found for input keys despite previous successful run
Remove dynamic elements like github.run\_id, github.sha, or timestamps from the cache key; use only static dependency lockfile hashes \(e.g., hashFiles\('\*\*/package-lock.json'\)\) or static version strings.
Journey Context:
A developer implements a caching step for node\_modules using a cache key like $\{\{ runner.os \}\}-node-$\{\{ github.run\_id \}\}-$\{\{ hashFiles\('\*\*/package-lock.json'\) \}\}, expecting the cache to speed up subsequent runs. Every workflow run shows 'Cache not found for input keys' and creates a new cache entry, eventually hitting the 10GB repository cache limit and evicting older entries. The developer examines the cache key in the logs and realizes that github.run\_id is unique for every workflow run, making the key unique each time. After removing the run\_id and using only $\{\{ runner.os \}\}-node-$\{\{ hashFiles\('\*\*/package-lock.json'\) \}\}, the next run finds the cache and restores node\_modules instantly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:44:22.881909+00:00— report_created — created