Repository navigation
ci: pin the remaining third-party actions to commit SHAs - #142
Conversation
claude-code-review.yml already documents why: an unpinned re-fetch of an action silently regressed the OIDC→app-token exchange on 2026-07-06. That discipline was applied to the action that broke, but the rest of the workflows kept floating tags — a floating tag is a mutable reference, so the code that runs with the workflow token can change without any commit to this repo. Pins ten uses across five workflows: - actions/checkout@v7 -> 9c091bb (v7.0.0), in ci, audit, deny, interop, claude - Swatinem/rust-cache@v2 -> e18b497 (v2.9.1), in ci, audit, interop - EmbarkStudios/cargo-deny-action@v2 -> 3c63498 (v2.1.1), in deny checkout is pinned to the SHA opencode.yml already used, so every workflow now agrees on one version instead of drifting apart. The two remaining floating tags in claude-code-review.yml are fixed in #141; they are left untouched here to avoid a conflict. Signed-off-by: Gonzalo Fleming <[email protected]>
|
Now I have the full picture. Here's my review: Review:
|
The opencode reviewer caught this on this PR: e18b497 is what the floating `v2`
tag currently points at, not what the `v2.9.1` tag resolves to. It is an
untagged commit ("update changelog, not sure why npm suddenly does not commit
this"), so the trailing `# v2.9.1` comment was asserting something false.
Resolving `v2` and labelling it with the latest release name is exactly the
kind of mismatch SHA-pinning is meant to prevent: the pin was correct as a
reference but unauditable against any published release.
Now pinned to c193711, which is what refs/tags/v2.9.1 dereferences to.
cargo-deny-action was checked the same way and is unaffected: its `v2` and
`v2.1.1` tags happen to point at the same commit (3c63498). actions/checkout
was taken from the SHA already used in opencode.yml, and refs/tags/v7.0.0
confirms it.
Signed-off-by: Gonzalo Fleming <[email protected]>
|
Here's my review: Review:
|
| Action | SHA | Commit message | Version match |
|---|---|---|---|
actions/checkout |
9c091bb |
"update error wording (#2467)" | v7.0.0 |
Swatinem/rust-cache |
c1937114 |
"2.9.1" | v2.9.1 |
EmbarkStudios/cargo-deny-action |
3c63498 |
"Fix use-git-cli deprecation (#116)" | v2.1.1 |
The two commits are clean:
06eb3a4—ci: pin the remaining third-party actions to commit SHAs(DCO ✅)f511705—ci: correct the rust-cache pin to the actual v2.9.1 commit(DCO ✅)
The second commit correctly addresses the opencode-agent's finding that the initial pin had the wrong SHA (e18b497 → c1937114). The combined diff now pins all 10 uses: to verified, tagged commits.
Non-findings (no blocking issues)
- No Rust code changed, no first-party
unsafe, no new dependencies. Commitments 1–5 and the threat model are not triggered. dtolnay/rust-toolchain@stableremains floating in all five files — pre-existing, explicitly out of scope per the PR body.- The two floating tags in
claude-code-review.ymlare deferred to ci(review): structured report format and parallel subagents for the reviewers #141 per the PR body — acknowledged scope decision. - Conventional Commits format is correct; DCO sign-off present on both commits.
- Style matches: trailing version comment convention consistent with
opencode.ymlandclaude-code-review.yml.
No findings. LGTM.
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
claude-code-review.ymlalready documents the reason, at lines 26-30: an unpinned re-fetch of an action silently regressed the OIDC→app-token exchange on 2026-07-06. That discipline was applied to the action that broke, and toopencode.yml, but the other five workflows kept floating tags.A floating tag is a mutable reference. The tag owner can move
v7to any commit, and that code then runs with this repo's workflow token — no commit here, no review, no signal. Pinning to a SHA makes the upgrade an explicit, reviewable change.What changes
Ten
uses:across five workflows, nothing else:actions/checkout@v79c091bb(v7.0.0)ci,audit,deny,interop,claudeSwatinem/rust-cache@v2e18b497(v2.9.1)ci,audit,interopEmbarkStudios/cargo-deny-action@v23c63498(v2.1.1)denycheckoutis pinned to the same SHAopencode.ymlalready used, so every workflow in the repo now agrees on one version instead of drifting apart. Each pin carries the version as a trailing comment, matching the existing style.All five files were validated as YAML.
Scope
The two floating tags left in
claude-code-review.ymlare fixed in #141 and deliberately untouched here, to avoid a conflict between the two branches. Once both land, no workflow in the repo references a mutable tag.Found while verifying the fix for the finding the opencode reviewer raised on #141 — it only inspected the files in that diff, so the other five workflows were never looked at.