Skip to content

Fix PyPI trusted publishing for the release workflow - #1

Merged
AHartmaier merged 2 commits into
mainfrom
copilot/fix-build-and-publish-job
Sep 16, 2026
Merged

AHartmaier merged 2 commits into
mainfrom
copilot/fix-build-and-publish-job

Conversation

Copilot AI commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

The build-and-publish release job was failing after a successful package build because PyPI rejected the GitHub OIDC token as an invalid-publisher. The workflow was not emitting the environment claim expected by the repository’s trusted publisher configuration.

  • Release workflow

    • Add the pypi environment to the build-and-publish job in .github/workflows/release.yml.
    • This causes the OIDC token used by pypa/gh-action-pypi-publish to include the environment claim required by PyPI trusted publishing.
  • Impact

    • Keeps the build path unchanged.
    • Restricts the fix to the release/publish configuration that was failing.
jobs:
  build-and-publish:
    runs-on: ubuntu-latest
    environment: pypi

Co-authored-by: AHartmaier <53872398+AHartmaier@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-and-publish Fix PyPI trusted publishing for the release workflow Sep 16, 2026
Copilot AI requested a review from AHartmaier September 16, 2026 05:03
@AHartmaier

Copy link
Copy Markdown
Contributor

Fix for build-and-publish workflow

@AHartmaier AHartmaier closed this Sep 16, 2026
@AHartmaier AHartmaier reopened this Sep 16, 2026
@AHartmaier
AHartmaier marked this pull request as ready for review September 16, 2026 05:11
@AHartmaier
AHartmaier merged commit a19d06d into main Sep 16, 2026
2 checks passed
@AHartmaier
AHartmaier deleted the copilot/fix-build-and-publish-job branch September 16, 2026 07:32
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