chore(ci): pin python workflow actions to commit SHAs#1874
Merged
Conversation
Replaces mutable tags (v6, v7, nightly, 1.95.0) with immutable commit SHAs to prevent supply-chain attacks via tag mutation. Fixes #1864.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | 7d5801c | Commit Preview URL Branch Preview URL |
Jun 05 2026, 12:42 AM |
There was a problem hiding this comment.
Pull request overview
This PR hardens the Python CI workflow against supply-chain risks by pinning all GitHub Action uses: references in .github/workflows/python.yml to immutable commit SHAs (addressing issue #1864), while preserving the prior ref as an inline comment for readability.
Changes:
- Replaced mutable action refs (e.g.,
@v*,@nightly) with full commit SHAs across all jobs in the Python workflow. - Added inline comments to retain the prior human-friendly ref.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@1.95.0 | ||
| uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 |
| # @nightly matches the repo's other nightly jobs (fuzz.yml, nightly.yml, | ||
| # ci.yml); the exact nightly is pinned via the toolchain: input below. | ||
| uses: dtolnay/rust-toolchain@nightly | ||
| uses: dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # nightly |
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
uses:action refs in.github/workflows/python.ymlfrom mutable tags to immutable commit SHAsactions/checkout,astral-sh/setup-uv,actions/setup-python,dtolnay/rust-toolchain,Swatinem/rust-cache,actions/upload-artifactTest plan
gh apiCloses #1864