CI: Use pypi trusted publisher for release by akrherz · Pull Request #203 · python-metar/python-metar · GitHub
Skip to content

CI: Use pypi trusted publisher for release#203

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

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

Conversation

@akrherz

@akrherz akrherz commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

closes #200

@akrherz akrherz requested a review from Copilot March 20, 2026 13:01
@akrherz

akrherz commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator Author

Copilot AI left a comment

Copy link
Copy Markdown

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.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

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.

Comment thread .github/workflows/release.yml Outdated
@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