Skip to content

CI: Use pypi trusted publisher for release#203

Merged
akrherz merged 4 commits intopython-metar:mainfrom
akrherz:gh200_pypi_trusted
Mar 20, 2026
Merged

CI: Use pypi trusted publisher for release#203
akrherz merged 4 commits intopython-metar:mainfrom
akrherz:gh200_pypi_trusted

Conversation

@akrherz
Copy link
Collaborator

@akrherz akrherz commented Mar 20, 2026

closes #200

@akrherz akrherz requested a review from Copilot March 20, 2026 13:01
@akrherz
Copy link
Collaborator Author

akrherz commented Mar 20, 2026

Unsure how to test this, but will see if copilot spots anything of concern...

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions release workflow to publish to PyPI using OIDC/Trusted Publishing instead of a long-lived PyPI API token, addressing the 403 upload failure reported in #200.

Changes:

  • Adds PyPI environment configuration and enables id-token permissions for OIDC-based publishing.
  • Switches publishing to pypa/gh-action-pypi-publish@release/v1.
  • Introduces a step to mint a short-lived PyPI API token from the GitHub OIDC token and uses it for upload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akrherz akrherz merged commit de36264 into python-metar:main Mar 20, 2026
6 checks passed
@akrherz akrherz deleted the gh200_pypi_trusted branch March 20, 2026 14:07
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.

pypi release workflow failed

2 participants