Repository navigation
Disable cache-aware actions throughout release workflows - #21196
Merged
Merged
Conversation
zanieb
enabled auto-merge (squash)
August 18, 2026 17:25
This was referenced Aug 18, 2026
zanieb
added a commit
to astral-sh/ty
that referenced
this pull request
Aug 18, 2026
Release jobs can consume shared GitHub caches when an action's cache defaults change. Set `ACTIONS_CACHE_MODE: none` in `release.yml` and every reusable workflow it calls so compatible clients skip cache reads and writes. Each reusable workflow needs its own setting because workflow-level environment variables are not inherited by called workflows. CI calls to those shared workflows use the same setting. This does not revoke cache credentials. The pinned `[email protected]` does not honor the variable, so the explicit client opt-outs in #4317 remain necessary. Unrelated workflows and artifact transfers are unchanged. Port of astral-sh/uv#21196. Co-authored-by: Zanie Blue <[email protected]>
zanieb
added a commit
to astral-sh/ruff
that referenced
this pull request
Aug 18, 2026
Release jobs can consume shared GitHub caches when an action's cache defaults change. Set `ACTIONS_CACHE_MODE: none` in `release.yml` and every reusable workflow it calls so compatible clients skip cache reads and writes. Each reusable workflow needs its own setting because workflow-level environment variables are not inherited by called workflows. CI calls to those shared workflows use the same setting. This does not revoke cache credentials. The pinned `[email protected]` and `[email protected]` do not honor the variable, so the explicit client opt-outs in #27846 remain necessary. Unrelated workflows and artifact transfers are unchanged. Port of astral-sh/uv#21196. Co-authored-by: Zanie Blue <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trusted release actions must not accidentally restore a poisoned shared GitHub cache. Set
ACTIONS_CACHE_MODE: noneinrelease.ymland each reusable workflow it calls so clients that support the variable skip cache reads and writes. Each reusable workflow needs its own setting because workflow-level environment variables do not propagate to called workflows. The shared binary-build workflow uses the same cache-disabled setting when invoked by CI.This is a cooperative client-side default, not token revocation or server-enforced denial. Older or independent clients, or code calling the cache API directly, can still access the service. The
@actions/cachelibrary's 6.2.0 change skips operations before contacting the cache backend; that is separate from its handling of server-denied requests. The release graph uses[email protected]and[email protected], whose pinned setup-uv and setup-python dependencies include@actions/[email protected]. Both honor this variable. The separateactions/[email protected]action still bundles@actions/[email protected]and does not honor it; the release graph does not invoke that action directly.Stacked on astral-sh#761, which keeps the action-specific opt-outs, removes the docs Rust cache, and explicitly disables maturin's sccache integration.
release-prepare.yml, same-run artifacts, and Depot's own cache are unchanged.