chore: pin GitHub Actions to commit SHAs for security#96
Merged
Conversation
Pin all GitHub Actions to full commit hashes instead of version tags to prevent supply chain attacks. Also upgrade to latest versions: - actions/checkout: v4 → v4.3.1 - actions/setup-python: v4 → v5.6.0 - astral-sh/setup-uv: v4 → v8.0.0 - peaceiris/actions-gh-pages: v4 → v4.0.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Pins GitHub Actions in CI/CD workflows to immutable commit SHAs to reduce the risk of tag retargeting/supply-chain attacks, while also updating actions/setup-python and astral-sh/setup-uv to newer releases.
Changes:
- Pin
actions/checkout,actions/setup-python,astral-sh/setup-uv, andpeaceiris/actions-gh-pagesto full commit SHAs. - Upgrade
actions/setup-pythonfrom v4 to v5.6.0 (pinned by SHA). - Upgrade
astral-sh/setup-uvfrom v4 to v8.0.0 (pinned by SHA).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/publish.yml | Pins checkout/setup-python/setup-uv actions to SHAs for release publishing workflow. |
| .github/workflows/build.yml | Pins checkout/setup-python/setup-uv actions to SHAs for matrix lint/test workflow. |
| .github/workflows/build-doc.yml | Pins checkout/setup-python/setup-uv and gh-pages deploy action to SHAs for docs build/deploy workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Pin uv version to 0.7.13 instead of "latest" in all workflows - Pin pre-commit hooks to commit SHAs for ruff, pre-commit-hooks, and typos - Add github-actions ecosystem to Dependabot for automated updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
actions/setup-pythonfrom v4 to v5.6.0astral-sh/setup-uvfrom v4 to v8.0.0