ci: pin third-party GitHub Actions to immutable commit SHAs - #3294
Open
loulanyue wants to merge 1 commit into
Open
ci: pin third-party GitHub Actions to immutable commit SHAs#3294loulanyue wants to merge 1 commit into
loulanyue 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 ultraworkers#3287
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.
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.