Skip to content

Commit 0c2811f

Browse files
authored
ci(release): Migrate to PyPI Trusted Publisher (#1000)
- Migrate PyPI publishing from API token to OIDC-based Trusted Publisher - Enable package attestations for supply chain security - Fix deprecated `skip_existing` parameter
2 parents d581e7d + e433b06 commit 0c2811f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ jobs:
9191
runs-on: ubuntu-latest
9292
needs: build
9393
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
94+
permissions:
95+
id-token: write
96+
attestations: write
9497

9598
strategy:
9699
matrix:
@@ -116,6 +119,5 @@ jobs:
116119
- name: Publish package
117120
uses: pypa/gh-action-pypi-publish@release/v1
118121
with:
119-
user: __token__
120-
password: ${{ secrets.PYPI_API_TOKEN }}
121-
skip_existing: true
122+
attestations: true
123+
skip-existing: true

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
3131

3232
<!-- To maintainers and contributors: Please add notes for the forthcoming version below -->
3333

34-
_Upcoming changes will be written here._
34+
### CI
35+
36+
- Migrate to PyPI Trusted Publisher (#1000)
3537

3638
## tmuxp 1.60.0 (2025-12-06)
3739

0 commit comments

Comments
 (0)