Repository navigation
CI: point rust-cache at the real v2.9.1 tag and label the unlabelled pins - #8005
Merged
Merged
Conversation
…pins
Three of the four swatinem/rust-cache pins were on
e18b497796c12c097a38f9edb9d0641fb99eee32 with the comment '# v2.9.1'.
That commit is not v2.9.1. It is an untagged commit pushed 17 seconds
after the tag ('update changelog, not sure why npm suddenly does not
commit this'). The real v2.9.1 is c19371144df3bb44fab255c43d04cbc2ab54d1c4,
which security-audit.yml was already using.
Nothing was compromised -- it is a legitimate upstream commit, and the
two differ only by a changelog file. But a SHA pin whose comment names a
version it is not defeats the point of the convention: the comment is
the only human-readable part, and anyone auditing or bumping these
reads it rather than resolving the hash. Now all four agree.
Also adds the missing '# vX.Y.Z' comment to the six pins in
release-desktop.yml that had none (checkout x2, setup-node, tauri-action
x3), so every SHA pin in the repo is now labelled with a tag that
actually resolves to it.
Verified by resolving every pinned SHA in every workflow against the
upstream tag list: 13 actions, no pin now claims a version it does not
have. The one remaining unlabelled-by-tag pin is
dtolnay/rust-toolchain@29eef336d9, commented '# stable @ 2026-03-27',
which is a branch pointer by design and correctly documented as such.
No version is upgraded here. v2.9.2 exists; moving to it is a separate
decision.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Aug 6, 2026
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.
Three of the four
swatinem/rust-cachepins were one18b497796c12c097a38f9edb9d0641fb99eee32with the comment# v2.9.1.That commit is not v2.9.1. It is an untagged commit pushed 17 seconds after the tag (
update changelog, not sure why npm suddenly does not commit this). The real v2.9.1 isc19371144df3bb44fab255c43d04cbc2ab54d1c4, whichsecurity-audit.ymlwas already using.To be clear about severity: nothing was compromised. It is a legitimate upstream commit and the two differ only by a changelog file. But a SHA pin whose comment names a version it is not defeats the point of the convention. The comment is the only human-readable part of the pin, so anyone auditing, reviewing, or bumping these reads it instead of resolving the hash. All four now agree.
Also in this PR
Six pins in
release-desktop.ymlcarried no version comment at all (checkoutx2,setup-node,tauri-actionx3). Added, so every SHA pin in the repo is labelled.How this was verified
Rather than eyeballing, I resolved every pinned SHA in every workflow against the upstream tag list via
gh api repos/<owner>/<repo>/tags. Result: 13 actions checked, and no pin now claims a version that does not resolve to it.The one pin still not backed by a tag is
dtolnay/rust-toolchain@29eef336d9, commented# stable @ 2026-03-27. That is a branch pointer by design and is correctly documented as such, so it is left alone.Scope
No version is upgraded here. v2.9.2 exists; moving to it is a separate decision. Existing Rust caches are not invalidated. I checked the action source rather than assuming: the cache key is built from a hardcoded literal (
let key = core.getInput("prefix-key") || "v0-rust";,src/config.ts:74), with noCACHE_VERSIONconstant and no reference topackage.json. That line is byte-identical at both SHAs, andgit diff c1937114 e18b4977is 4 added lines ofCHANGELOG.mdand nothing else, so the two commits are indistinguishable as an executable action.Two other pin outliers were deliberately not changed:
lockfile-audit.ymlusescheckoutv7.0.0 andsetup-pythonv6.3.0 where the rest of the repo is on v6.0.2 / v6.2.0. Those are newer, not stale, so converging them on the majority would be a downgrade. Bumping the other 76 call sites to v7 is a real change with its own risk and belongs in its own PR.ossf.ymlis the vendored upstream OpenSSF Scorecard starter workflow and tracks the pins that project ships. Diverging from it locally would make future upstream syncs noisier.