Repository navigation
Repin dtolnay/rust-toolchain to the current v1 - #1088
Merged
Merged
Conversation
The upstream v1 tag moved to 7e38f4b (dtolnay/rust-toolchain#186, which retries rustup toolchain install on release server checksum failures), so the old pin no longer matches its version comment and zizmor's online ref-version-mismatch audit fails.
epompeii
marked this pull request as ready for review
October 2, 2026 02:01
epompeii
added a commit
that referenced
this pull request
Oct 12, 2026
## Problem `Lint / Zizmor Online` fails on every pull request (for example run 37884500334 on #1153) with one medium finding, exit 13: ``` warning[ref-version-mismatch]: action's hash pin has mismatched or missing version comment --> ./.github/workflows/update_sandbox.yml:18:81 18 | - uses: dtolnay/rust-toolchain@7e38f4b # v1 | ^^ points to commit e2a55d2ffb04 ``` The upstream `v1` tag of `dtolnay/rust-toolchain` moved to `e2a55d2ffb04f378e9626c28d38b36d230d1e12f` on 2026-10-09 when dtolnay/rust-toolchain#187 merged. The job is `continue-on-error: true`, so it does not block a merge, but it is red on every open pull request. ## Change Repin `update_sandbox.yml` to the commit `v1` points at today and keep the `# v1` comment. This follows #987, #1045, and #1088, which tracked `v1` for this same pin, and `v1` is the only tag upstream publishes. The hash was resolved from the GitHub refs API. ## Upstream range `7e38f4b4...e2a55d2f` is three commits, all in `action.yml`, fixing the command injection reported in dtolnay/rust-toolchain#179: - Every input and the parsed toolchain move out of inline `${{ }}` expressions in `run:` scripts and into `env:` variables, quoted at each use. - The parsed `toolchain` output is written with a heredoc delimiter instead of `key=value`. - The separate step that built `--target`, `--component`, and `--allow-downgrade` strings is folded into the install step as a bash array. This call site passes only `toolchain: stable`, no targets or components, so it was never exposed, and it still runs `rustup toolchain install stable --profile minimal --no-self-update --force-non-host` followed by `rustup default stable --force-non-host`. No other workflow or composite action uses this action. ## Other moving refs Every other pin whose comment names a moving ref still matches it today: `rui314/setup-mold@10ca16bf # v1` (14 sites), `dawidd6/action-download-artifact@b6e2e706 # v21` (2 sites), and `superfly/flyctl-actions/setup-flyctl@ed8efb33 # master` (3 sites, the current `master` head). Nothing else needs a change. ## Verification zizmor 1.25.2, the version CI pins, from the same digest-pinned image `zizmor-action` runs (`ghcr.io/zizmorcore/zizmor:1.25.2@sha256:14ea7f5c...`), with the action's arguments (`--persona=regular --format=github`, plus `--no-online-audits` for the offline job): | Tree | Offline | Online | | --- | --- | --- | | `devel` | exit 0 | exit 13, `1 medium` (the finding above) | | this branch | exit 0 | exit 0, `No findings to report` | CI on this pull request is the final check.
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.
The upstream
v1tag ofdtolnay/rust-toolchainmoved to7e38f4b43b4db5c8dd498af069a4f6196df1d067when dtolnay/rust-toolchain#186 merged. The pin inupdate_sandbox.ymlstill pointed at the previousv1commit, so its# v1comment no longer matched and theLint / Zizmor Onlinecheck failed on every PR withref-version-mismatch.This repins to the current
v1commit and keeps the comment. The upstream delta is one change toaction.yml:rustup toolchain installis retried up to five times, 30 seconds apart, only when it fails with the release server checksum error. No other workflow uses this action.