GitHub Actions makes cache read-only for untrusted workflow triggers by default
GitHub announced on June 26, 2026, that Actions cache tokens will be read-only when workflows are triggered by untrusted events such as pull_request_target, issue_comment, and fork-based workflow_run cascades. The change addresses a longstanding security risk where external contributors could poison a repository's shared cache, influencing subsequent builds on the default branch without touching the codebase. No configuration opt-in is required; the restriction takes effect automatically the next time an untrusted trigger fires. Trusted triggers like push, schedule, and workflow_dispatch retain full read-write cache access as before. Teams that relied on fork or comment-triggered workflows to populate the cache will need to move cache-save steps into a separate push-triggered workflow, while untrusted workflows switch to restore-only operations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in