Skip to content

ci: pin astral-sh/setup-uv to a commit SHA - #40

Open
balsa-sarenac wants to merge 1 commit into
mainfrom
balsa/ci-pin-actions
Open

balsa-sarenac wants to merge 1 commit into
mainfrom
balsa/ci-pin-actions

Conversation

@balsa-sarenac

Copy link
Copy Markdown
Contributor

Description

Pins astral-sh/setup-uv in .github/workflows/ci.yml from the v7 tag to its commit SHA (v7.6.0).

Why: tags can be moved. In March 2026 the Trivy action tags were moved to run a credential stealer in CI. A SHA only changes when someone edits the file.

The commit is the one v7 points to today, and GitHub shows it as verified. Behaviour does not change.

Source: https://socket.dev/blog/trivy-under-attack-again-github-actions-compromise

How to test

The tests matrix on this PR runs setup-uv on every job. A green run is the test.

Notes

I did not add Dependabot for github-actions. Pinned SHAs stop getting updates unless something bumps them. That is a separate change.

🤖 Generated with Claude Code

A tag or branch can be moved to different code. In March 2026 the Trivy action tags were moved to steal CI secrets. A commit SHA cannot be moved. A run only changes when someone edits this file.

This pins setup-uv v7 (v7.6.0) to the commit that tag points to today. Behaviour is the same.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

1 participant