Skip to content

Commit 4bb8151

Browse files
Fix crates.io secret name: CRATES_IO_TOKEN -> CARGO_REGISTRY_TOKEN
The repository secret is named CARGO_REGISTRY_TOKEN, but four references across release-all.yml and publish-crates.yml read secrets.CRATES_IO_TOKEN, which does not exist. GitHub resolves a missing secret to an empty string rather than failing, so cargo received "" and the v1.0.4 release died with: error: failed to publish ison-rs v1.0.2 to registry at https://crates.io Caused by: please provide a non-empty token The wrong name was inherited from the original workflow and carried through the rewrite without being checked against the actual secret list. Every secrets.* reference across all workflows now resolves to a configured secret: CARGO_REGISTRY_TOKEN, GITHUB_TOKEN, NPM_TOKEN, PYPI_API_TOKEN. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent a13bf7d commit 4bb8151

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-crates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: ${{ inputs.dry_run != true }}
4646
working-directory: ison-rust
4747
env:
48-
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
48+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4949
run: cargo publish
5050

5151
- name: Dry run
@@ -84,7 +84,7 @@ jobs:
8484
if: ${{ inputs.dry_run != true }}
8585
working-directory: isonantic-rust
8686
env:
87-
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
87+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
8888
run: cargo publish
8989

9090
- name: Dry run

.github/workflows/release-all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ jobs:
279279
cargo publish
280280
fi
281281
env:
282-
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
282+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
283283

284284
# ===========================================
285285
# PHASE 3: Publish Dependent Packages
@@ -307,7 +307,7 @@ jobs:
307307
cargo publish
308308
fi
309309
env:
310-
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
310+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
311311

312312
# ===========================================
313313
# PHASE 4: Create Release

0 commit comments

Comments
 (0)