ci: use OIDC trusted publishing and SHA-pin pypi-publish in release.yml - #64
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
=======================================
Coverage 82.17% 82.17%
=======================================
Files 48 48
Lines 1419 1419
Branches 110 110
=======================================
Hits 1166 1166
Misses 221 221
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Switch the PyPI publish step in `.github/workflows/release.yml` to OIDC trusted publishing, as part of the Open edX Python repo modernization effort we are following: openedx/public-engineering#506 Remove `user: __token__` / `password: ${{ secrets.PYPI_UPLOAD_TOKEN }}`; the `publish_to_pypi` job already grants `id-token: write`, so publishing now uses OIDC with no long-lived secret. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
farhan
force-pushed
the
farhan/release-oidc-pin
branch
from
August 19, 2026 14:11
95c3b0f to
9fcc655
Compare
Set up automated changelog generation for python-semantic-release as part of the Open edX Python repo modernization effort: openedx/public-engineering#506 - Add `CHANGELOG.rst` with the `.. changelog-insertion-marker` that python-semantic-release updates on each release. - Add `[tool.semantic_release.changelog]` config (`mode = "update"`, `insertion_flag = ".. changelog-insertion-marker"`, and `default_templates` pinning `changelog_file = "CHANGELOG.rst"` / `output_format = "rst"`) to `pyproject.toml`. - Drop the `changelog: "false"` input from the Run Semantic Release step in `release.yml` so the changelog is generated on release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
farhan
force-pushed
the
farhan/release-oidc-pin
branch
from
August 19, 2026 14:22
89f04a8 to
8def36e
Compare
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.
Important
PR implemented with the assistance of Claude Code. Refined and validated before being submitted for code review.
Modernize
release.ymlPart of openedx/public-engineering#506
Summary
user: __token__/password: ${{ secrets.PYPI_UPLOAD_TOKEN }}inputs.python-semantic-release:CHANGELOG.rstwith the.. changelog-insertion-markerthat PSR updates on each release.[tool.semantic_release.changelog]config topyproject.toml(mode = "update",insertion_flag = ".. changelog-insertion-marker", anddefault_templatespinningchangelog_file = "CHANGELOG.rst"/output_format = "rst"so PSR writes the.rstfile instead of the defaultCHANGELOG.md).changelog: "false"input from the Run Semantic Release step inrelease.ymlso the changelog is generated on release.Important Notes
release.yml, and thepublish_to_pypijob.PYPI_UPLOAD_TOKENis no longer used and can be removed from repo secrets.openedx/xblock-sdkreference implementation.CHANGELOG.rstis auto-managed by PSR — entries below the insertion marker should not be edited by hand.🤖 Generated with Claude Code