Skip to content

fix(ci): pin setup-uv to v7 in release workflow (v8 does not exist) - #84

Merged
Liohtml merged 1 commit into
mainfrom
claude/repo-issues-features-3ZLdb
Jun 11, 2026
Merged

fix(ci): pin setup-uv to v7 in release workflow (v8 does not exist)#84
Liohtml merged 1 commit into
mainfrom
claude/repo-issues-features-3ZLdb

Conversation

@Liohtml

@Liohtml Liohtml commented Jun 11, 2026

Copy link
Copy Markdown
Owner

What happened

The v0.2.0 release run failed (run 27357593997) at the very first job:

##[error]Unable to resolve action `astral-sh/setup-uv@v8`, unable to find version `v8`

release.yml pinned astral-sh/setup-uv@v8, which is not a published version. The build job aborted in ~10s, and since pypi and docker both needs: build, neither ran — so nothing was published to PyPI or GHCR. Clean slate to retry.

(Note: the repo-health bot in #40 suggested v7 → v8, but v8 doesn't exist; ci.yml correctly uses @v7 and runs green.)

Fix

release.yml: astral-sh/setup-uv@v8@v7, matching ci.yml.

After merge — re-trigger the release

The v0.2.0 tag points at the old commit. Once this is on main, the tag/release must be re-pointed at the new commit to re-run publishing. I'll guide that step.

Validation

One-line workflow fix; no code change. CI will confirm the workflows still parse/run.

https://claude.ai/code/session_01KYcUxCGAHaTPrRHTzJCWQz


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated release workflow toolchain configuration.

The release workflow referenced astral-sh/setup-uv@v8, which is not a published
version, so the v0.2.0 release run failed at the build job before any publish
step ran (nothing was pushed to PyPI or GHCR). ci.yml already uses @v7 and runs
green; align release.yml to match.

After this merges to main, the v0.2.0 tag must be re-pointed at the new commit
(delete + recreate the tag/release) to re-trigger publishing.

https://claude.ai/code/session_01KYcUxCGAHaTPrRHTzJCWQz
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The release workflow's uv setup step is updated to use version 7 of the astral-sh setup-uv action instead of version 8. This one-line change affects the toolchain initialization in the build and verify package job that precedes package artifact generation and PyPI/Docker registry publishing.

Changes

Release Workflow Toolchain

Layer / File(s) Summary
UV toolchain action version update
.github/workflows/release.yml
The release workflow's uv setup action is pinned to astral-sh/setup-uv@v7 instead of v8.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A rabbit once versioned with care,
From eight down to seven so fair,
The workflow runs true,
With UV anew,
CI builds beyond compare! 🚀

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description provides context on the issue, the fix applied, and post-merge actions, but does not follow the repository's template structure with Summary, Changes, Testing, and Additional Notes sections. Restructure the description to match the template: add a Summary section with issue link, a Changes list, Testing checklist, and Additional Notes for deployment considerations.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically identifies the main change: pinning setup-uv to v7 in the release workflow and explains the reason (v8 does not exist).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/repo-issues-features-3ZLdb

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
.github/workflows/release.yml (1)

31-31: ⚖️ Poor tradeoff

Consider pinning to commit SHA for supply-chain security (optional).

As per static analysis, GitHub Actions best practices recommend pinning to full commit SHAs instead of tags (e.g., astral-sh/setup-uv@<commit-sha>) to prevent tag-rewriting attacks. This applies to all actions in the workflow, not just setup-uv.

This is an optional hardening measure and not required to fix the immediate v8→v7 issue.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 31, The workflow currently references
the third‑party action as "astral-sh/setup-uv@v7"; to harden supply‑chain
security replace the tag with a full commit SHA for that action (e.g.,
"astral-sh/setup-uv@<commit-sha>") by locating the desired commit in the
action's repository and updating the reference, and apply the same pinning
approach to any other action entries in the workflow so all uses are fixed to
immutable commit SHAs rather than mutable tags.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.github/workflows/release.yml:
- Line 31: The workflow currently references the third‑party action as
"astral-sh/setup-uv@v7"; to harden supply‑chain security replace the tag with a
full commit SHA for that action (e.g., "astral-sh/setup-uv@<commit-sha>") by
locating the desired commit in the action's repository and updating the
reference, and apply the same pinning approach to any other action entries in
the workflow so all uses are fixed to immutable commit SHAs rather than mutable
tags.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 82eafce0-b209-4748-b409-7babec75627d

📥 Commits

Reviewing files that changed from the base of the PR and between 7fdb4a0 and b59dcb0.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

@Liohtml
Liohtml merged commit 92a3e56 into main Jun 11, 2026
14 checks passed
Liohtml pushed a commit that referenced this pull request Jun 11, 2026
The 0.2.0 tag failed to publish (release workflow referenced a non-existent
setup-uv@v8, so the build aborted before PyPI/GHCR upload). Rather than re-point
the public v0.2.0 tag, bump to 0.2.1 — which also now includes the i18n reports
feature (#16) and the release-workflow fix (#84) that landed on main since.

- pyproject.toml + __init__.py: 0.2.0 -> 0.2.1
- CHANGELOG: new [0.2.1] section noting i18n + the release fix, with a note that
  0.2.0 never published; compare links updated.

After merge, tag v0.2.1 on main to trigger the (now fixed) release pipeline.

https://claude.ai/code/session_01KYcUxCGAHaTPrRHTzJCWQz
Liohtml added a commit that referenced this pull request Jun 11, 2026
The 0.2.0 tag failed to publish (release workflow referenced a non-existent
setup-uv@v8, so the build aborted before PyPI/GHCR upload). Rather than re-point
the public v0.2.0 tag, bump to 0.2.1 — which also now includes the i18n reports
feature (#16) and the release-workflow fix (#84) that landed on main since.

- pyproject.toml + __init__.py: 0.2.0 -> 0.2.1
- CHANGELOG: new [0.2.1] section noting i18n + the release fix, with a note that
  0.2.0 never published; compare links updated.

After merge, tag v0.2.1 on main to trigger the (now fixed) release pipeline.

https://claude.ai/code/session_01KYcUxCGAHaTPrRHTzJCWQz

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants