-
Notifications
You must be signed in to change notification settings - Fork 0
Pin GitHub Actions to commit hashes with version tags #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin GitHub Actions to commit hashes with version tags #7
Conversation
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
Copilot
AI
Dec 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
48feedb
into
dependabot/github_actions/actions-fb87565d5d
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.