diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 000dd0b..0784db3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,19 @@ jobs: needs: check-version if: needs.check-version.outputs.release == 'true' runs-on: ubuntu-latest + # Trusted Publishing (OIDC) — no long-lived CARGO_REGISTRY_TOKEN secret. + # Configure once at https://crates.io/crates/beyond-slipstream/settings/new-trusted-publisher + # Repository owner: beyondoss + # Repository name: slipstream + # Workflow filename: release.yml + permissions: + id-token: write + contents: read steps: - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable + - uses: rust-lang/crates-io-auth-action@v1 + id: auth - run: cargo publish env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}