Commit b1b34b3
feat: Configure Trusted Publishing for crates.io
Replace manual CARGO_REGISTRY_TOKEN secret with OIDC-based Trusted Publishing.
Changes:
- Add permissions.id-token: write for OIDC token generation
- Add permissions.contents: read for checkout access
- Configure 'crates' environment with crates.io URL
- Use rust-lang/crates-io-auth-action@v1 for authentication
- Update CARGO_REGISTRY_TOKEN to use ephemeral token from auth action
This matches the existing PyPI and npm Trusted Publishing configurations.
Co-authored-by: bug-ops <[email protected]>1 parent bd49de0 commit b1b34b3
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
42 | | - | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
0 commit comments