Skip to content

fix: use checkout + uv version to also update uv.lock#393

Merged
louis-sanna-dev merged 1 commit intomainfrom
fix/align-version-with-uv-lock
Feb 27, 2026
Merged

fix: use checkout + uv version to also update uv.lock#393
louis-sanna-dev merged 1 commit intomainfrom
fix/align-version-with-uv-lock

Conversation

@louis-sanna-dev
Copy link
Contributor

Summary

The previous API-only approach only updated pyproject.toml but not uv.lock, causing version mismatch.

This PR switches to using uv version which updates both files properly.

Changes

  • Checkout the PR branch after generation
  • Use uv version "$VERSION" instead of sed replacement
  • Commit and push both pyproject.toml and uv.lock

Security note

Checkout is safe in this context because:

  • workflow_dispatch trigger (not pull_request_target)
  • Branch is in the same repo, not a fork
  • Branch was just created by Speakeasy in the same workflow run

Test plan

  1. Merge this PR
  2. Trigger "Generate MISTRALAI" workflow
  3. Verify both pyproject.toml AND uv.lock are updated with matching versions

The API-only approach only updated pyproject.toml but not uv.lock.
This version:

- Checks out the PR branch (safe for workflow_dispatch context)
- Uses `uv version` to update both pyproject.toml and uv.lock
- Commits and pushes the changes

Security note: checkout is safe here because:
- workflow_dispatch trigger (not pull_request_target)
- Branch is in same repo, not a fork
- Branch was just created by Speakeasy in the same workflow run
@andreaonofrei01 andreaonofrei01 self-requested a review February 27, 2026 15:07
@louis-sanna-dev louis-sanna-dev merged commit b5f8c81 into main Feb 27, 2026
9 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.

2 participants