Skip to content

fix(ci): prevent cache poisoning in release builds#744

Open
wpfleger96 wants to merge 1 commit into
mainfrom
fix/zizmor-cache-poisoning
Open

fix(ci): prevent cache poisoning in release builds#744
wpfleger96 wants to merge 1 commit into
mainfrom
fix/zizmor-cache-poisoning

Conversation

@wpfleger96
Copy link
Copy Markdown
Collaborator

Summary

  • Add lookup-only: true to Swatinem/rust-cache in release.yml to prevent restoring from a potentially poisoned cache during release builds.
  • save-if: false only prevents cache writes but still restores from cache. Since cache keys are public info (derived from repo state), an attacker can pre-poison the cache key before a release workflow runs. lookup-only: true skips cache restoration entirely.
  • CI workflows keep save-if — cache poisoning there only affects CI, not release artifacts.

Ref: zizmorcore/zizmor#2051

@wpfleger96 wpfleger96 requested a review from a team as a code owner May 24, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant