Skip to content

Commit b44c93e

Browse files
Bump version to 0.1.6 and use trusted publishing via OIDC
Use rust-lang/crates-io-auth-action to exchange OIDC token for crates.io publish credentials. No API token secret needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 10994e9 commit b44c93e

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ jobs:
1111
publish:
1212
runs-on: ubuntu-latest
1313
environment: crates-io
14+
permissions:
15+
id-token: write
16+
contents: read
1417
steps:
1518
- uses: actions/checkout@v4
1619
- uses: dtolnay/rust-toolchain@stable
1720
- uses: Swatinem/rust-cache@v2
21+
- uses: rust-lang/crates-io-auth-action@v1
1822
- run: cargo publish
19-
env:
20-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "openapi-to-rust"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
edition = "2024"
55
rust-version = "1.85.0"
66
authors = ["James Lalonde"]

0 commit comments

Comments
 (0)