fix(release): isolate Rust server publish Python - #2110
Conversation
Greptile SummaryThe PR isolates release Python dependencies with setup-python, constrains Boto3 to a release supporting conditional PutObject, and updates workflow tests accordingly.
Confidence Score: 4/5The PR appears safe to merge, with the non-blocking recommendation to pin the newly added release action references to immutable commits. The Python isolation changes are consistent with their downstream commands and tests; the remaining concern is supply-chain hardening for two action steps that execute with release credentials. Files Needing Attention: .github/workflows/release-claw-server-rust.yml
|
| Filename | Overview |
|---|---|
| .github/workflows/release-claw-server-rust.yml | Isolates publication tooling under Python 3.13 and removes user-site installs, but adds mutable action references to credential-bearing release jobs. |
| packages/browseros-agent/scripts/release/release-claw-server-rust-workflow.test.ts | Adds focused assertions for setup-python, dependency installation, and removal of user-site pip usage. |
Prompt To Fix All With AI
### Issue 1
.github/workflows/release-claw-server-rust.yml:632
**Mutable release action reference**
The newly added `actions/setup-python@v6` reference is mutable and executes in publication and finalization jobs with production R2 credentials and `contents: write` permission. Pinning both occurrences to an immutable commit prevents a repointed action tag from exposing credentials or altering published artifacts.
**How this was verified:** Both added action references were traced to jobs containing production R2 credentials and inheriting `contents: write` permission.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "fix(release): isolate Rust server publis..." | Re-trigger Greptile
| path: dist/claw-server-rust | ||
| merge-multiple: true | ||
|
|
||
| - uses: actions/setup-python@v6 |
There was a problem hiding this comment.
Mutable release action reference
The newly added actions/setup-python@v6 reference is mutable and executes in publication and finalization jobs with production R2 credentials and contents: write permission. Pinning both occurrences to an immutable commit prevents a repointed action tag from exposing credentials or altering published artifacts.
How this was verified: Both added action references were traced to jobs containing production R2 credentials and inheriting contents: write permission.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/release-claw-server-rust.yml
Line: 632
Comment:
**Mutable release action reference**
The newly added `actions/setup-python@v6` reference is mutable and executes in publication and finalization jobs with production R2 credentials and `contents: write` permission. Pinning both occurrences to an immutable commit prevents a repointed action tag from exposing credentials or altering published artifacts.
**How this was verified:** Both added action references were traced to jobs containing production R2 credentials and inheriting `contents: write` permission.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
✅ Tests passed — 2183/2186
|
Summary
Verification
Fixes the publication failure in run 31043344099.