security: pin GitHub Actions to SHA hashes#24
Merged
Conversation
Pin all third-party GitHub Actions to full SHA references to prevent supply chain attacks via tag manipulation or typosquatting. Ref: https://rosesecurity.dev/2026/03/20/typosquatting-trivy.html
There was a problem hiding this comment.
Pull request overview
Pins third-party GitHub Actions used in CI workflows to immutable full commit SHAs to reduce supply-chain risk, while leaving actions/*, github/*, and internal RevenueCat/* actions unpinned per org policy.
Changes:
- Pinned
astral-sh/setup-uvin the test workflow to a full commit SHA. - Pinned
PyO3/maturin-actionandastral-sh/setup-uvin the CI/release workflow to full commit SHAs (with version comments).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/tests.yml | Pins astral-sh/setup-uv to a full SHA in the Python test job. |
| .github/workflows/CI.yml | Pins PyO3/maturin-action (wheel/sdist builds) and astral-sh/setup-uv (release publish) to full SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| with: | ||
| python-version: "3.x" | ||
| - uses: astral-sh/setup-uv@v4 | ||
| - uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0 |
| python-version: 3.x | ||
| - name: Build wheels | ||
| uses: PyO3/maturin-action@v1 | ||
| uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1 |
bisho
approved these changes
Jun 25, 2026
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.
Pin third-party GitHub Actions to full SHA hashes. Excludes actions/, github/, and internal RevenueCat/* per org policy.