GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk
Blog post from Socket
GitHub Actions has introduced cache-mode, a least-privilege setting designed to reduce cache poisoning risks by controlling cache access at the workflow or job level. The feature offers read, write, write-only, and none modes, with read-only as the default for lower-trust events such as pull_request_target and write access for trusted push events; job-level settings override workflow-level settings, and reusable workflows cannot gain more access than their callers permit. Cache poisoning can allow attackers to place malicious artifacts in a shared cache that later execute in trusted workflows, a method linked to compromises involving Ultralytics and TanStack packages. GitHub added write-only after security feedback to allow trusted branches to populate caches without restoring potentially compromised entries, and recommends disabling cache access entirely for AI agent workflows that may process untrusted issue or pull request content. While cache-mode strengthens cache protections, it does not address other GitHub Actions threats, including executing untrusted code, package lifecycle scripts, or workflows that mint OIDC tokens.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| AI Agents | 1 | 931 | 231 | 103 | -84% |
| Secrets Management | 1 | 451 | 99 | 43 | -80% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.