You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CI] Add cache-poisoning mitigations for actions/cache #49730
Workflows that use actions/cache and are triggered by both push and pull_request (or schedule) may be susceptible to cache poisoning. The recommended mitigation is to use actions/cache/restore (read-only) in PR-triggered runs and only allow cache writes from trusted branches.
I'm closing this as "not needed" as the solution (PRs can only read from the cache) would slow down CI on PRs, but the only consequence if someone tried to take advantage of it would be a misleading CI run (false pass) but no effect on released artifacts etc, so it doesn't seem like a reasonable tradeoff.
Activity
thisisnic commentedon Apr 14, 2026
This also seems like a false positive as may be fairly unlikely?
thisisnic commentedon Apr 29, 2026
I'm closing this as "not needed" as the solution (PRs can only read from the cache) would slow down CI on PRs, but the only consequence if someone tried to take advantage of it would be a misleading CI run (false pass) but no effect on released artifacts etc, so it doesn't seem like a reasonable tradeoff.