Skip to content

Commit d5cd630

Browse files
authored
ci(release): Migrate to PyPI Trusted Publisher (#57)
- 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 89be5c0 + fcf57f2 commit d5cd630

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
@@ -59,6 +59,9 @@ jobs:
5959
runs-on: ubuntu-latest
6060
needs: build
6161
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
62+
permissions:
63+
id-token: write
64+
attestations: write
6265

6366
strategy:
6467
matrix:
@@ -86,6 +89,5 @@ jobs:
8689
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
8790
uses: pypa/gh-action-pypi-publish@release/v1
8891
with:
89-
user: __token__
90-
password: ${{ secrets.PYPI_API_TOKEN }}
91-
skip_existing: true
92+
attestations: true
93+
skip-existing: true

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ $ uvx --from 'gp-libs' --prerelease allow gp-libs
2828

2929
## gp-libs 0.0.17 (unreleased)
3030

31-
_Add your latest changes from PRs here_
31+
### CI
32+
33+
- Migrate to PyPI Trusted Publisher (#57)
3234

3335
## gp-libs 0.0.16 (2025-11-25)
3436

0 commit comments

Comments
 (0)