Repository navigation
ci: harden release pipeline dependencies, wheel builds, and checkout credentials - #5884
DylanRussell wants to merge 11 commits into
Conversation
…credentials Assisted-by: Gemini
Pull request dashboard statusWaiting on the author · refreshed 2026-11-13 15:00 UTC Respond to 1 review item (e.g. link a commit, explain why not, ask a follow-up):
Status above doesn't look right?
|
emdneto
left a comment
There was a problem hiding this comment.
I think this has some pieces in common with https://github.com/open-telemetry/opentelemetry-python/pull/5837/changes. Maybe we can merge merge #5837 first and implement your changes
Agreed, @DylanRussell do you mind reviewing #5837? |
There was a problem hiding this comment.
🟡 Changes recommended
Active findings identify a path-traversal bypass in the build audit, exposure of write-scoped credentials to dependency execution, and incomplete enforcement of the dependency release-age cutoff.
3 open issues
What changed in this PR
This PR hardens OpenTelemetry Python’s release tooling by restricting dependency freshness, checking build inputs and wheel contents, and reducing stored checkout credentials.
Changes:
- Adds a three-day Renovate update delay and a uv build dependency cutoff.
- Moves release tooling to locked uv dependencies and adds clean-tree and wheel-content checks.
- Disables checkout credential persistence and authenticates pushes through GitHub CLI.
| File | Description |
|---|---|
uv.lock |
Locks added release tools and their dependencies. |
scripts/build.sh |
Uses uv builds with freshness, clean-tree, and wheel-content checks. |
pyproject.toml |
Adds toml and twine development dependencies. |
.github/workflows/release.yml |
Runs version discovery and publishing through uv. |
.github/workflows/prepare-release-branch.yml |
Uses uv tooling and explicit push authentication. |
.github/workflows/prepare-patch-release.yml |
Updates patch preparation tooling and authentication. |
.github/workflows/backport.yml |
Removes persisted credentials and adjusts authentication permissions. |
.github/scripts/update-version.sh |
Runs version updates through locked uv dependencies. |
.github/scripts/update-version-patch.sh |
Uses uv and quotes version arguments. |
.github/renovate.json5 |
Adds a three-day minimum release age for updates. |
Review effort: Balanced
|
Hi @DylanRussell — just a friendly reminder that this pull request is waiting on you. The dashboard status comment has the open items and is kept current.
|
|
Ack added my review to g #5837 .. We can wait for that |


Description
Applies the remaining release pipeline hardening changes from open-telemetry/opentelemetry-python-genai#978:
minimumReleaseAge: "3 days"in.github/renovate.json5and useuvwith--exclude-newer 3d/UV_EXCLUDE_NEWER=3dacross release workflows and scripts.scripts/build.sh.persist-credentials: falseon remainingactions/checkoutsteps in release/backport workflows and authenticate pushes viagh auth setup-git.Type of change
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.
tox -e precommittox -e typecheck