Skip to content

ci: install Rust with rustup instead of dtolnay/rust-toolchain #765

Closed

Description

@DrunkOnJava

Every workflow installs Rust with dtolnay/rust-toolchain, pinned by commit as the repository requires (24 uses across 8 workflows). That pin keeps going stale:

  • The action's stable and nightly branches are force-pushed. The stable head pinned on 2026-10-05 had diverged by 2026-10-18 (5 commits ahead, 1 behind), and zizmor reported every such pin as an impostor-commit error. ci: zizmor's findings fixed, Python pins Dependabot watches, auditable release binaries (C10) #733 moves every use to a commit of the action's master branch, which only moves forward (both earlier master pins are its ancestors), so that error doesn't come back.
  • zizmor's ref-version-mismatch still warns whenever master moves past the pinned commit. It already did so for main's existing # master pin ("branch points to commit 683b588c487a").

zizmor's superfluous-actions audit names this action, with plain rustup as the replacement. GitHub's Linux, macOS and Windows runners ship rustup, and no workflow reads the action's outputs (cachekey, name). Replacing it removes a third-party action from every job and retires both findings.

To do:

  • Replace each use with a run: step: rustup toolchain install <toolchain> --profile minimal --no-self-update plus its --component and --target flags, then rustup default <toolchain>.
  • Keep what the action also set where a job relies on it: CARGO_INCREMENTAL=0 and CARGO_TERM_COLOR=always in GITHUB_ENV (the build caches assume non-incremental builds).
  • Watch the first runs on all three OSes, the MSRV job (toolchain: ${{ matrix.rust }}) and the pinned nightly fuzz job.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cipriority:P3type:ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions