Pin GitHub Actions to commit SHAs for security#329
Merged
Conversation
Pin all GitHub Actions to specific commit SHAs instead of version tags to improve supply chain security and prevent potential tag manipulation. Changes: - actions/checkout: v4 → v4.3.0 (08eba0b) - Swatinem/rust-cache: v2 → v2.7.3 (82a92a6) - actions/upload-artifact: v4 → v4.4.3 (80b2bf3) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Pull Request Overview
This PR enhances supply chain security by pinning all GitHub Actions to specific commit SHAs instead of version tags, preventing potential security issues from tag manipulation or compromised action versions.
- Replaces version tags with commit SHAs for 6 different GitHub Actions
- Adds semantic version comments for maintainability
- Updates 12 workflow files across the repository
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/xrpc.yml | Pin actions/checkout to commit SHA |
| .github/workflows/xrpc-client.yml | Pin actions/checkout to commit SHA |
| .github/workflows/wasm.yml | Pin actions/checkout and actions-rust-lang/setup-rust-toolchain to commit SHAs |
| .github/workflows/rust.yml | Pin actions/checkout, actions-rust-lang/setup-rust-toolchain, and giraffate/clippy-action to commit SHAs |
| .github/workflows/repo.yml | Pin actions/checkout to commit SHA |
| .github/workflows/release-plz.yml | Pin actions/checkout and release-plz/action to commit SHAs |
| .github/workflows/oauth.yml | Pin actions/checkout to commit SHA |
| .github/workflows/identity.yml | Pin actions/checkout to commit SHA |
| .github/workflows/crypto.yml | Pin actions/checkout to commit SHA |
| .github/workflows/common.yml | Pin actions/checkout to commit SHA |
| .github/workflows/bsky-sdk.yml | Pin actions/checkout to commit SHA |
| .github/workflows/api.yml | Pin actions/checkout to commit SHA |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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
Changes
Updated the following actions across 12 workflow files:
actions/checkout:v4→v4.3.0(SHA:08eba0b)Swatinem/rust-cache:v2→v2.7.3(SHA:82a92a6)actions/upload-artifact:v4→v4.4.3(SHA:80b2bf3)actions-rust-lang/setup-rust-toolchain:v1→v1.15.1(SHA:02be93d)giraffate/clippy-action:v1→v1.0.1(SHA:13b9d32)release-plz/action:v0.5→v0.5.117(SHA:acb9246)Test plan
🤖 Generated with Claude Code