Skip to content

Commit f40f30a

Browse files
authored
ci(release) Migrate to PyPI Trusted Publisher (#499)
## Summary - 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 3fd8380 + 631ef8f commit f40f30a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
runs-on: ubuntu-latest
5959
needs: build
6060
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
61+
permissions:
62+
id-token: write
63+
attestations: write
6164

6265
strategy:
6366
matrix:
@@ -80,6 +83,5 @@ jobs:
8083
- name: Publish package
8184
uses: pypa/gh-action-pypi-publish@release/v1
8285
with:
83-
user: __token__
84-
password: ${{ secrets.PYPI_API_TOKEN }}
85-
skip_existing: true
86+
attestations: true
87+
skip-existing: true

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ $ uv add libvcs --prerelease allow
1818

1919
<!-- Maintainers, insert changes / features for the next release here -->
2020

21-
_Upcoming changes will be written here._
21+
### CI
22+
23+
- Migrate to PyPI Trusted Publisher (#499)
2224

2325
### Development
2426

0 commit comments

Comments
 (0)