From 6b3b09481fb6b0792b968cfe239d9644f0813bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Mon, 27 Oct 2025 14:37:27 +0100 Subject: [PATCH] Update GitHub Actions workflow for release-plz --- .github/workflows/release-plz.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index e15ebe9..a567ca3 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -17,17 +17,19 @@ jobs: name: Release-plz runs-on: ubuntu-latest permissions: - pull-requests: write contents: write + id-token: write + pull-requests: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: true # required by release-plz - + - uses: rust-lang/crates-io-auth-action@041cce5b4b821e6b0ebc9c9c38b58cac4e34dcc2 + id: auth - name: Run release-plz id: release-plz uses: MarcoIeni/release-plz-action@8724d33cd97b8295051102e2e19ca592962238f5 # v0.5.108 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}