Skip to content

Commit b1baee1

Browse files
authored
Add trusted publishing auth for crates.io releases (#3)
This integrates the official crates-io-auth-action to obtain a token via trusted publishing (OIDC), enabling secure, keyless authentication without storing long-lived API tokens as repository secrets. Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent abdeab9 commit b1baee1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/CreateRelease.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
with:
4444
rust-toolchain: "1.89"
4545

46+
- name: Authenticate with crates.io
47+
uses: rust-lang/crates-io-auth-action@v1
48+
id: crates-io-auth
49+
4650
- name: Set crate versions
4751
run: |
4852
git fetch --tags || true
@@ -54,6 +58,8 @@ jobs:
5458
run: |
5559
cargo publish -p hyperlight-js-runtime
5660
cargo publish -p hyperlight-js
61+
env:
62+
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
5763

5864
- name: Download benchmarks (Windows)
5965
uses: actions/download-artifact@v7

0 commit comments

Comments
 (0)