build(ci): Use setup-uv v7 and remove uv version pinning#7799
Merged
build(ci): Use setup-uv v7 and remove uv version pinning#7799
Conversation
The bump-version workflow fails because python3 (via uv shim) cannot find the Python 3.13.12 interpreter specified in .python-version. Add an explicit uv python install step and remove the pinned uv version to use the latest. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/L0DH5cB_C9aBYvM9KtWa2qrE0CiMiAyIVEBDtkLbBjg
Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/ok8yylFxCXKjR-v1odgTh458iiovfYErpyy767e4Sto
Use the v7 tag for astral-sh/setup-uv instead of the pinned SHA for v6, and remove all explicit uv version pins (0.8.2) from workflow files and Dockerfile to always use the latest version. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/UYlMeQ0s-VRuT8HpAY3vBFOD7WExPjh-XbUO-7Yas9E
Replace direct python and .venv/bin/python calls with uv run so that uv handles Python installation automatically. This avoids needing explicit uv python install steps in CI workflows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/QAyeHyyaEWgI5HtIWmkwComyWCTEDh9ULqHVrBat1kc
Pin astral-sh/setup-uv to the exact commit hash for v7.3.1 instead of the mutable v7 tag, improving supply chain security. Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/cTaWcqt1ukWWrnk-CJvWYTcGVbg73d2YMrDik-_Rz-I
MeredithAnya
approved these changes
Mar 6, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
|
||
| RUN python3 -m pip install \ | ||
| --index-url 'https://pypi.devinfra.sentry.io/simple' 'uv==0.8.2' | ||
| --index-url 'https://pypi.devinfra.sentry.io/simple' 'uv' |
There was a problem hiding this comment.
Unpinned uv version in production Dockerfile risks build breakage
Medium Severity
The uv package version pin was removed in the production Dockerfile, changing from 'uv==0.8.2' to 'uv'. While the GitHub Actions all pin to a specific SHA for setup-uv, the Dockerfile now installs whatever uv version happens to be latest on the private PyPI index at build time. A breaking uv release (e.g., changes to uv sync, lockfile format, or dependency resolution) could cause non-reproducible or failing production image builds without any code change.
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
astral-sh/setup-uvfrom pinned v6 SHA to thev7tag across all workflow files0.8.2) from all workflow files and the Dockerfileuv runinstead of directpython/.venv/bin/pythoncalls to let uv handle Python installation automaticallyTest plan
🤖 Generated with Claude Code