From 784e02374e1d4573dc7880692677235cca5aeacd Mon Sep 17 00:00:00 2001 From: Mike Foster Date: Sat, 2 May 2026 14:14:39 +0000 Subject: [PATCH 1/2] switch to token auth --- .github/workflows/rust-publish.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust-publish.yml b/.github/workflows/rust-publish.yml index 747fb7d..626fd2b 100644 --- a/.github/workflows/rust-publish.yml +++ b/.github/workflows/rust-publish.yml @@ -197,15 +197,15 @@ jobs: # Use OIDC for updating existing crates - uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe #v1.0.4 id: auth + # - name: Publish + # env: + # CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + # run: + # cargo publish + # # # OR # # # + # Use API Token ONLY for creating a new crate - name: Publish env: - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} run: cargo publish - # # # OR # # # - # # Use API Token ONLY for creating a new crate - # - name: Publish - # env: - # CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} - # run: - # cargo publish \ No newline at end of file From baf2b609993b3f697378a43be61ed631a5f074b1 Mon Sep 17 00:00:00 2001 From: Mike Foster Date: Sat, 2 May 2026 14:15:11 +0000 Subject: [PATCH 2/2] also disable OIDC token collection --- .github/workflows/rust-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-publish.yml b/.github/workflows/rust-publish.yml index 626fd2b..6faf1ff 100644 --- a/.github/workflows/rust-publish.yml +++ b/.github/workflows/rust-publish.yml @@ -195,8 +195,8 @@ jobs: - name: install rust run: rustup set profile default && rustup install # Use OIDC for updating existing crates - - uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe #v1.0.4 - id: auth + # - uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe #v1.0.4 + # id: auth # - name: Publish # env: # CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}