diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 34947bf2..43ddb61c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,6 +58,9 @@ jobs: runs-on: ubuntu-latest needs: build if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + permissions: + id-token: write + attestations: write strategy: matrix: @@ -80,6 +83,5 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - skip_existing: true + attestations: true + skip-existing: true diff --git a/CHANGES b/CHANGES index 20957a01..5a32e661 100644 --- a/CHANGES +++ b/CHANGES @@ -18,7 +18,9 @@ $ uv add libvcs --prerelease allow -_Upcoming changes will be written here._ +### CI + +- Migrate to PyPI Trusted Publisher (#499) ### Development