Skip to content

chore: pin GitHub Actions to commit SHAs for security#96

Merged
TomeHirata merged 2 commits into
mainfrom
chore/pin-github-actions-to-commit-shas
Apr 4, 2026
Merged

chore: pin GitHub Actions to commit SHAs for security#96
TomeHirata merged 2 commits into
mainfrom
chore/pin-github-actions-to-commit-shas

Conversation

@TomeHirata
Copy link
Copy Markdown
Collaborator

@TomeHirata TomeHirata commented Apr 4, 2026

Summary

  • Pin all GitHub Actions to full commit SHAs instead of version tags to prevent supply chain attacks
  • Upgrade actions/setup-python from v4 to v5.6.0
  • Upgrade astral-sh/setup-uv from v4 to v8.0.0

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>
Copilot AI review requested due to automatic review settings April 4, 2026 05:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and peaceiris/actions-gh-pages to full commit SHAs.
  • Upgrade actions/setup-python from v4 to v5.6.0 (pinned by SHA).
  • Upgrade astral-sh/setup-uv from 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.

Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/build-doc.yml Outdated
Comment thread .github/workflows/publish.yml Outdated
- 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>
@TomeHirata TomeHirata merged commit 6bd34a5 into main Apr 4, 2026
10 checks passed
@TomeHirata TomeHirata deleted the chore/pin-github-actions-to-commit-shas branch April 4, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants