From 347ce0f73f7d53190a5dfa7f0c9944ecec84fc28 Mon Sep 17 00:00:00 2001 From: Dima Anfimov Date: Wed, 16 Sep 2026 01:12:30 +0200 Subject: [PATCH] chore: use token for publishing --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 721f61a..031cc6d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,7 @@ jobs: environment: name: release permissions: - id-token: write + contents: read steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: @@ -25,4 +25,6 @@ jobs: version: "latest" - run: uv version "${GITHUB_REF_NAME}" - run: uv build - - run: uv publish --trusted-publishing always --token "${secrets.PYPI_API_TOKEN}" + - run: uv publish --trusted-publishing never # zizmor: ignore[use-trusted-publishing] + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}