Skip to content

ci: stop caching target/ in miri and release-plz jobs - #248

Open
fasterthanlime wants to merge 1 commit into
mainfrom
ci/stop-caching-target-with-secrets
Open

fasterthanlime wants to merge 1 commit into
mainfrom
ci/stop-caching-target-with-secrets

Conversation

@fasterthanlime

Copy link
Copy Markdown
Collaborator

cargo miri writes its whole environment under target/, and the Namespace cache volume holding ./target is shared with PR runs (Rust blog post).

  • miri job: drop ./target and ./target-cov from the cache paths.
  • release-plz job: drop the cache step entirely. It runs with CARGO_REGISTRY_TOKEN in the environment and was writing ./target into the same volume that PRs read.

The miri job itself had no secrets in its env, so this is defense in depth for that job. Related: GHSA-w86r-9599-8v44.

cargo miri persists its full environment under target/, and the
Namespace cache volume is shared with PR runs. release-plz has
CARGO_REGISTRY_TOKEN in its environment and wrote to the same volume.

GHSA-w86r-9599-8v44
@codspeed

codspeed Bot commented Sep 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 10 untouched benchmarks


Comparing ci/stop-caching-target-with-secrets (b9e5310) with main (b9b2f26)

Open in CodSpeed

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.

2 participants