Skip to content

ci: Resolve most zizmor findings as of zizmor@1.32.0 - #73

Merged
ubiratansoares merged 3 commits into
rust-lang:mainfrom
hashcatHitman:ref-version-mismatch_and_stale-action-refs_and_superfluous-actions_and_unpinned-uses
Nov 10, 2026
Merged

ubiratansoares merged 3 commits into
rust-lang:mainfrom
hashcatHitman:ref-version-mismatch_and_stale-action-refs_and_superfluous-actions_and_unpinned-uses

Conversation

@hashcatHitman

@hashcatHitman hashcatHitman commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

In pursuit of getting more zizmor lints enforced across rust-lang repos through crabwatch, this PR fixes most zizmor findings as of zizmor@1.32.0, using the auditor persona. The lints that actually fired per-persona level are:

regular persona findings:

pedantic persona findings:

auditor persona findings:

  • Everything from pedantic
  • Fixed in this PR:
    • None
  • Not fixed in this PR:
    • None

For Swatinem/rust-cache, it seems 2.9.1 may have been re-tagged at some point. You can compare the old commit and the new commit here: https://github.com/Swatinem/rust-cache/compare/e18b497796c12c097a38f9edb9d0641fb99eee32..c19371144df3bb44fab255c43d04cbc2ab54d1c4

The only difference is changelog entries being added/removed.

For dtolnay/rust-toolchain, it seems like re-tagging is the only tagging it knows. Fortunately, rustup is already installed on ubuntu-latest, windows-latest, and macos-latest. Switching to using rustup directly clears ref-version-mismatch and stale-action-refs, with the added benefit of clearing superfluous-actions.

The hash pin format is supported by tools like Dependabot and Renovate, which can update the pinned hashes and their associated comments. If you'd like help setting either of those up, let me know which you prefer, and if you'd like it in this PR or a new one. By default, I'd assume to set it up to only update GitHub Actions. See also: #67

See: https://github.com/Swatinem/rust-cache/releases/tag/v2.9.1

See: https://github.com/Swatinem/rust-cache/compare/e18b497796c12c097a38f9edb9d0641fb99eee32..c19371144df3bb44fab255c43d04cbc2ab54d1c4

The only difference is the official release seems to have forgotten to
update the changelog.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
@hashcatHitman
hashcatHitman force-pushed the ref-version-mismatch_and_stale-action-refs_and_superfluous-actions_and_unpinned-uses branch from b564b51 to a99d8c0 Compare November 10, 2026 12:14
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
@hashcatHitman hashcatHitman changed the title ops: Resolve ref-version-mismatch, stale-action-refs, superfluous-actions, and unpinned-uses ci: Resolve most zizmor findings as of zizmor@1.32.0 Nov 10, 2026
@hashcatHitman

Copy link
Copy Markdown
Member Author

r? crabwatch

@hashcatHitman

Copy link
Copy Markdown
Member Author

Well... I guess a coin flip as always. If this one lands on Marco (Heads (1)), I'm going to have to start rolling a 3-sided die to try to make it more fair.

@hashcatHitman

Copy link
Copy Markdown
Member Author
$ fend 1d2
  1: 50.00%  ##############################
  2: 50.00%  ##############################

$ fend roll 1d2
2

The coin is afraid. It knows I'm watching.

Well, anyway, cc @ubiratansoares

@ubiratansoares
ubiratansoares merged commit 13ae832 into rust-lang:main Nov 10, 2026
2 checks passed
@hashcatHitman
hashcatHitman deleted the ref-version-mismatch_and_stale-action-refs_and_superfluous-actions_and_unpinned-uses branch November 10, 2026 13:14
@hashcatHitman hashcatHitman moved this from zizmor PR opened to Needs Policy Update in t-crabwatch policy expansion Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Policy Update

Development

Successfully merging this pull request may close these issues.

2 participants