Commit bc96e85
ci(publish): switch cargo publishing to trusted OIDC auth (#403)
* ci(publish): switch cargo publishing to trusted OIDC auth
Replace long-lived KORA_CLI_REGISTRY_TOKEN API token with crates.io
trusted publishing via GitHub Actions OIDC identity tokens.
Adds id-token: write permission and removes CARGO_REGISTRY_TOKEN env
vars from both publish steps. The operator must add a trusted publisher
entry on crates.io for kora-lib and kora-cli pointing to this workflow
before the next publish run.
* Update .github/workflows/rust-publish.yml
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* fix(ci): remove duplicate jobs key and scope id-token permission
The Greptile suggestion was applied incorrectly, inserting a duplicate
top-level jobs: key. YAML last-key-wins semantics caused the id-token:
write permission block to be silently discarded, leaving cargo publish
with no auth mechanism.
Fix: remove the duplicate jobs/publish block and add the permissions
block directly under the single publish job. Also update CLAUDE.md to
remove the stale KORA_CLI_REGISTRY_TOKEN secret reference.
---------
Co-authored-by: Jo D <dev-jodee@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>1 parent 42a0057 commit bc96e85
2 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | | - | |
93 | | - | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
0 commit comments