ci: pin third-party GitHub Actions to immutable commit SHAs - #3294
ci: pin third-party GitHub Actions to immutable commit SHAs#3294loulanyue wants to merge 1 commit into
Conversation
Defend CI against floating tag mutations and supply-chain tampering by pinning actions to immutable commit hashes with release tag comments. Fixes #3287
|
Good security hardening — pinning floating @vn tags to immutable commit SHAs kills supply-chain risk from tag re-pointing, and keeping the human-readable version comment is the right trade-off for maintainability. One nit: since actions/checkout is pinned but the workflow itself is invoked from a fixed ref too, everything here looks consistent. Approving direction; the change closes #3287. |
|
Good call on pinning to immutable SHAs — floating One suggestion to keep these from going stale: enable Dependabot for the |
Summary
Pins third-party GitHub Actions across all CI workflows to immutable commit SHAs.
Fixes #3287
Changes
Updated
.github/workflows/release.yml,.github/workflows/rust-ci.yml, and.github/workflows/rust.ymlto replace floating@vNaction references with immutable full commit hashes while preserving the human-readable version comment:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stableSwatinem/rust-cache@400e7407cfd7a091e5fbb6afec01ec146c432b7c # v2.7.7softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1Verification
Passed doc source-of-truth and release readiness checks locally.