From 602abd716cb6a984bb44848fefd4c2c9091acabc Mon Sep 17 00:00:00 2001 From: Cool Bear Bot Date: Wed, 19 Aug 2026 23:31:32 +0200 Subject: [PATCH] ci: use crates.io trusted publishing Empty CARGO_REGISTRY_TOKEN failed the post-#10 publish. Official release-plz TP: drop the secret, set id-token: write on the release job. release-plz exchanges the OIDC token itself. crates.io still needs trusted-publisher rows for copypatch and weavy (repo bearcove/weavy, workflow release-plz.yml, environment none). --- .github/workflows/release-plz.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 2ac561c..c4cc112 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -13,6 +13,7 @@ jobs: permissions: contents: write pull-requests: read + id-token: write steps: - name: Checkout repository uses: actions/checkout@v6 @@ -27,7 +28,6 @@ jobs: command: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} # Create a PR with the new versions and changelog, preparing the next release. release-plz-pr: @@ -53,4 +53,3 @@ jobs: command: release-pr env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}