Skip to content

Fix PyPI publish workflow: add OIDC permissions and update deprecated inputs#31

Merged
cokelaer merged 2 commits into
mainfrom
copilot/fix-pypi-workflow-failure
Mar 21, 2026
Merged

Fix PyPI publish workflow: add OIDC permissions and update deprecated inputs#31
cokelaer merged 2 commits into
mainfrom
copilot/fix-pypi-workflow-failure

Conversation

Copilot AI commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

pypa/gh-action-pypi-publish@release/v1 now attempts OIDC trusted publishing by default, requiring id-token: write at the job level. Without it, the workflow fails with missing or insufficient OIDC token permissions.

Changes

  • id-token: write permission added to the job — required for OIDC token retrieval
  • repository_urlrepository-url — fixes deprecation warning (action now requires kebab-case)
  • user: __token__ removed — no longer accepted by the action
  • password secrets retained as fallback for API token auth if trusted publishing isn't configured on the PyPI project side

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Fix PyPI workflow failure in versionix Fix PyPI publish workflow: add OIDC permissions and update deprecated inputs Mar 21, 2026
Copilot AI requested a review from cokelaer March 21, 2026 15:10
@cokelaer
cokelaer marked this pull request as ready for review March 21, 2026 15:13
@cokelaer
cokelaer merged commit e91e8ae into main Mar 21, 2026
1 of 5 checks passed
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