Skip to content

ci: get the toolchain from rust-toolchain.toml - #258

Closed
Moep90 wants to merge 1 commit into
kapicorp:mainfrom
Moep90:ci/rust-toolchain-pin
Closed

Moep90 wants to merge 1 commit into
kapicorp:mainfrom
Moep90:ci/rust-toolchain-pin

Conversation

@Moep90

@Moep90 Moep90 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Removes both dtolnay/rust-toolchain steps from ci.yml. CLI-34 and CLI-48 in docs/specs/cli-and-release.md change to match.

Why

Workflow lint fails on every run, main included, because dtolnay/rust-toolchain was pinned to a commit on its master branch. zizmor reports ref-version-mismatch whenever master moves past that commit, so bumping the pin only lasts until the next move.

The step installed stable, but rust-toolchain.toml overrides it. The runner's rustup reads that file on the first cargo call and installs the pinned toolchain with rustfmt and clippy. The MSRV job already relies on that rustup. Without the action there is no pin to drift.

The zizmor version needs nothing. The pinned zizmor-action SHA maps version: latest to a fixed image digest, so zizmor only changes when Dependabot bumps the action.

Verified

  • zizmor 1.30.1, the version the pinned action runs, with online audits over .github/workflows: no findings.
  • The lint and test jobs on ubuntu and macOS without the action: see this PR's CI.

@github-actions github-actions Bot added the area: packaging Crates, release binaries, CI label Oct 17, 2026
@Moep90
Moep90 force-pushed the ci/rust-toolchain-pin branch 3 times, most recently from 81d2460 to 0a5a00c Compare October 27, 2026 19:01
@Moep90 Moep90 changed the title ci: pin dtolnay/rust-toolchain to current master ci: get the toolchain from rust-toolchain.toml and pin zizmor Oct 27, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 27, 2026
dtolnay/rust-toolchain was pinned to a commit on its master branch. Every time master moved, zizmor's ref-version-mismatch audit failed Workflow lint on every pull request. The action installed stable, which rust-toolchain.toml overrides anyway, so the runner's rustup already provides the pinned toolchain and its components.

Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
@Moep90
Moep90 force-pushed the ci/rust-toolchain-pin branch from 0a5a00c to dcf90d8 Compare October 27, 2026 19:05
@Moep90 Moep90 changed the title ci: get the toolchain from rust-toolchain.toml and pin zizmor ci: get the toolchain from rust-toolchain.toml Oct 27, 2026
@Moep90

Moep90 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Closing: this change reached main through #205, which carried a copy of the commit. #260 builds on it.

@Moep90 Moep90 closed this Oct 27, 2026
Moep90 added a commit to Moep90/krab that referenced this pull request Oct 27, 2026
Each was "not met yet" with an open deviation, and its issue was closed by a merged pull request that did not update the spec. Test: names the test that pull request added, Since: the pull request. CLI-48 now cites kapicorp#205, which carried the toolchain change, and no longer kapicorp#258, which was closed unmerged.

Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
Moep90 added a commit to Moep90/krab that referenced this pull request Oct 27, 2026
Each was "not met yet" with an open deviation, and its issue was closed by a merged pull request that did not update the spec. Test: names the test that pull request added, Since: the pull request. CLI-48 now cites kapicorp#205, which carried the toolchain change, and no longer kapicorp#258, which was closed unmerged.

Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
Moep90 added a commit to Moep90/krab that referenced this pull request Oct 29, 2026
Each was "not met yet" with an open deviation, and its issue was closed by a merged pull request that did not update the spec. Test: names the test that pull request added, Since: the pull request. CLI-48 now cites kapicorp#205, which carried the toolchain change, and no longer kapicorp#258, which was closed unmerged.

Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Crates, release binaries, CI documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant