Read-only Actions cache for untrusted triggers in GitHub
2 similar posts
- GitHub Actions
- actions/cache
AI Summary
GitHub Actions now issues read-only cache tokens to the default branch for workflow events that can be triggered without write permissions. This change mitigates security risks like cache poisoning and privilege escalation from external triggers like pull_request_target and fork-pull-request workflow_run cascades. Trusted triggers such as push and schedule maintain full read-write caching.
Key Takeaways
- Untrusted triggers now receive read-only cache tokens.
- Prevents attackers from injecting poisoned entries into the default-branch cache.
- Workflows requiring cache saves from untrusted events must use alternative patterns like push triggers.
Why it matters
Understanding security updates in CI/CD platforms helps engineers prevent supply chain attacks, cache poisoning, and privilege escalation vulnerabilities in their software delivery pipelines.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.