Pin GitHub Actions to commit hashes with version tags#7
Merged
shenxianpeng merged 5 commits intoDec 13, 2025
Merged
Conversation
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Bump actions group with six updates
Pin GitHub Actions to commit hashes with version tags
Dec 13, 2025
shenxianpeng
approved these changes
Dec 13, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances supply chain security by pinning all GitHub Actions to immutable commit SHA-256 hashes instead of mutable version tags. Each pinned action includes a human-readable version comment for maintainability.
Key Changes:
- Pinned 8 distinct GitHub Actions to their commit hashes across 22 uses in the release workflow
- Added inline version tag comments in the format
action@<commit-hash> # <version>for readability - Updated actions to specific versions for checkout, upload/download artifacts, Python setup, QEMU setup, cibuildwheel, MSVC setup, and GitHub release creation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| - name: Create draft release | ||
| uses: softprops/action-gh-release@v2 | ||
| uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2 |
There was a problem hiding this comment.
The version comment uses "v2" without a specific patch version, which is inconsistent with other actions in this PR that use specific patch versions (e.g., v6.0.1, v3.7.0). Consider using a more specific version tag like "v2.x.x" for consistency and clarity, or verify that v2 is indeed the most specific tag available for this action.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
shenxianpeng
approved these changes
Dec 13, 2025
48feedb
into
dependabot/github_actions/actions-fb87565d5d
2 checks passed
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.
All GitHub Actions in workflow files are now pinned to commit hashes instead of mutable version tags, improving supply chain security by preventing unexpected changes from upstream action updates.
Changes:
action@<commit-hash> # <version>Format:
Actions Updated:
actions/checkout,actions/setup-python,actions/upload-artifact,actions/download-artifactdocker/setup-qemu-action,pypa/cibuildwheelilammy/msvc-dev-cmd,softprops/action-gh-release💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.