proomt

Search

Search posts, papers, and topics

All posts

Rust BlogManish Goregaokar3 min readintermediate

GitHub Actions leaking secrets when Miri output is cached

Summary

Miri writes all environment variables to the target/ directory, and when that directory is cached in GitHub Actions, secrets can be exposed to PRs. A short‑term patch now limits Miri to only preserve CARGO_* vars (excluding tokens) and OUT_DIR; until the fix lands, disable target caching or scope secrets away from Miri steps and clear existing caches.

  • Miri stores every env var in target/, which can be persisted by GitHub Actions cache and leaked to PRs.
  • The patch restricts Miri to only keep CARGO_* (except token vars) and OUT_DIR, preventing secret capture.
  • Mitigate by disabling target/ caching, scoping secrets to non‑Miri steps, or temporarily disabling Miri.
  • After fixing, clear the cache and rotate any potentially leaked secrets.

Rust project maintainers using GitHub Actions need to know this issue to avoid unintentionally leaking secrets through cached build artifacts.

6/10

Related reading

  1. Inside ZCode: Silently uploading your Git history to the cloud

    ZCode (Zhipu’s AI coding desktop) silently archives your entire workspace—including full .git history, LFS cache, and config—encrypts it with a server‑supplied RSA public key, and uploads the ciphertext directly to Aliyun OSS. The upload runs unconditionally for any logged‑in user, cannot be disabled via UI, and the decryption key lives only on the server, giving Zhipu full read access to your co…

    Hacker News front pageferstar.org6 minpostmortemHN336113
  2. App Hardening: One Obfuscation Pipeline Across Every Port

    Codename One adds a cloud‑side hardening step that runs on the merged JAR before it is split into Android, iOS, JavaScript, and desktop binaries. It can rename symbols, encrypt string literals, and insert opaque‑predicate control‑flow guards at configurable levels (off → standard → aggressive → paranoid). The transforms are selective per platform to avoid breaking optimizers, and a mapping is kep…

    CodeName Onecodenameone.com6 min