Skip to content

release: sync master with PyPI Trusted Publishing fix - #15

Merged
mesrikanthreddy merged 3 commits into
masterfrom
dev
Jul 18, 2026
Merged

release: sync master with PyPI Trusted Publishing fix#15
mesrikanthreddy merged 3 commits into
masterfrom
dev

Conversation

@mesrikanthreddy

Copy link
Copy Markdown
Collaborator

Summary

  • Brings master up to date with dev, which has three commits master is missing (dev is otherwise a strict superset — no divergence).
  • The only actual file change is .github/workflows/release.yml: switches publish-pypi from a secrets.PYPI_API_TOKEN password (never set) to PyPI Trusted Publishing (OIDC), adding permissions: id-token: write and dropping the password input.

Why

v1.1.0's publish-pypi job failed — the workflow tried API-token auth with an empty token, which made gh-action-pypi-publish fall back to OIDC trusted publishing, which then failed too since the job had no id-token permission. v1.1.0 was published to PyPI manually via twine as a workaround. This PR makes the next tagged release publish to PyPI automatically, with no secret to manage. The PyPI project's trusted-publisher registration (owner YTT-Global, repo kshield, workflow release.yml) has already been added on pypi.org.

Test plan

  • Confirm .github/workflows/release.yml is valid (CI YAML lint / next workflow run)
  • Cut a future release tag and confirm publish-pypi succeeds without manual twine upload

mesrikanthreddy and others added 3 commits July 17, 2026 20:02
…arnings

Feat/vscode extension inline warnings
publish-pypi tried password auth via secrets.PYPI_API_TOKEN, which was
never actually set as a repo secret (v1.1.0 was published manually
instead). With password empty, gh-action-pypi-publish fell back to
OIDC trusted publishing, which then failed too since the job had no
id-token permission.

Switch to Trusted Publishing properly: add `permissions: id-token:
write` and drop the password input so the action always uses OIDC.
No long-lived token to rotate or leak. Requires a one-time trusted
publisher registration on pypi.org (project kshield → Publishing →
add YTT-Global/kshield, workflow release.yml) before the next tagged
release.
…arnings

fix: use PyPI Trusted Publishing instead of a repo-secret API token
@mesrikanthreddy
mesrikanthreddy merged commit 7a0d294 into master Jul 18, 2026
10 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.

1 participant