Skip to content

Commit 156621d

Browse files
authored
ci(crates): migrate sspi-rs and winscard to trusted publishing (#550)
1 parent 10ed474 commit 156621d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release-crates.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ jobs:
1414
# Create a PR with the new versions and changelog, preparing the next release.
1515
open-pr:
1616
name: Open release PR
17-
runs-on: ubuntu-latest
1817
environment: cratesio-publish
19-
18+
runs-on: ubuntu-latest
2019
concurrency:
2120
group: release-plz-${{ github.ref }}
2221
cancel-in-progress: false
@@ -39,17 +38,23 @@ jobs:
3938
# Release unpublished packages.
4039
release:
4140
name: Release crates
42-
runs-on: ubuntu-latest
4341
environment: cratesio-publish
42+
runs-on: ubuntu-latest
43+
permissions:
44+
id-token: write
4445

4546
steps:
4647
- name: Checkout repository
4748
uses: actions/checkout@v4
4849
with:
4950
fetch-depth: 512
5051

52+
- name: Authenticate with crates.io
53+
id: auth
54+
uses: rust-lang/crates-io-auth-action@v1
55+
5156
- name: Run release-plz
5257
uses: Devolutions/actions-public/release-plz@v1
5358
with:
5459
command: release
55-
registry-token: ${{ secrets.CRATES_IO_TOKEN }}
60+
registry-token: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)