Skip to content

ci: pin dtolnay/rust-toolchain action to commit SHA - #104

Merged
SreeramGarlapati merged 1 commit into
mainfrom
harden/pin-rust-toolchain-action
Aug 9, 2026
Merged

ci: pin dtolnay/rust-toolchain action to commit SHA#104
SreeramGarlapati merged 1 commit into
mainfrom
harden/pin-rust-toolchain-action

Conversation

@SreeramGarlapati

Copy link
Copy Markdown
Collaborator

Summary

Pin dtolnay/rust-toolchain to the commit SHA 4360b52 (what @stable currently resolves to) in both the check and bench jobs.

Why

@stable is a mutable ref. A compromise of the upstream action or a re-point of its stable ref would execute attacker-controlled code in CI — with a read-write GITHUB_TOKEN on push to main (secret exfil, artifact injection). Pinning to an immutable SHA closes this. CWE-1357 / CWE-353.

Found via Frontier Strike WS2 OSS scan. No behavior change — same commit @stable points to today.

Replace the mutable @stable ref (check + bench jobs) with the pinned
commit SHA 4360b52 it currently resolves to. Removes a supply-chain
exposure: a compromise of the upstream action or its stable ref would
otherwise execute in CI with a read-write GITHUB_TOKEN on push to main.

CWE-1357 / CWE-353. Found via Frontier Strike WS2 OSS scan.
@salesforce-cla

salesforce-cla Bot commented Aug 9, 2026

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @SreeramGarlapati to sign the Salesforce Inc. Contributor License Agreement.

@SreeramGarlapati
SreeramGarlapati merged commit 012d46e into main Aug 9, 2026
5 of 6 checks passed
@SreeramGarlapati
SreeramGarlapati deleted the harden/pin-rust-toolchain-action branch August 9, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant