Repository navigation
ci: pin astral-sh/setup-uv to a commit SHA - #40
Open
balsa-sarenac wants to merge 1 commit into
Open
balsa-sarenac wants to merge 1 commit into
balsa-sarenac wants to merge 1 commit into
Conversation
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]>
balsa-sarenac
force-pushed
the
balsa/ci-pin-actions
branch
from
October 23, 2026 15:57
de961bf to
1d01539
Compare
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.
Description
Pins
astral-sh/setup-uvin.github/workflows/ci.ymlfrom thev7tag 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
v7points 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
testsmatrix on this PR runssetup-uvon 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