Skip to content

security: pin GitHub Actions to SHA hashes#24

Merged
alfondotnet merged 1 commit into
mainfrom
security/pin-actions-to-sha
Jun 25, 2026
Merged

security: pin GitHub Actions to SHA hashes#24
alfondotnet merged 1 commit into
mainfrom
security/pin-actions-to-sha

Conversation

@alfondotnet

Copy link
Copy Markdown
Member

Pin third-party GitHub Actions to full SHA hashes. Excludes actions/, github/, and internal RevenueCat/* per org policy.

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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-uv in the test workflow to a full commit SHA.
  • Pinned PyO3/maturin-action and astral-sh/setup-uv in 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
Comment thread .github/workflows/CI.yml
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
@alfondotnet alfondotnet merged commit bbd489c into main Jun 25, 2026
33 checks passed
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.

3 participants