Commit 657249b
ci: use Trusted Publishing for crates.io instead of long-lived token (#9)
crates.io added OIDC Trusted Publishing for GitHub Actions in July 2025.
This brings crates.io in line with PyPI (which the publish-pypi job
already uses) and removes the need to store a CARGO_REGISTRY_TOKEN
secret in the repo — the workflow exchanges a GitHub-issued OIDC token
for a 30-minute crates.io access token at publish time.
Before this can run on a real tag, register the Trusted Publisher on
crates.io: sqllineage crate → Settings → Trusted Publishing → add
GitHub repo funcpp/sqllineage, workflow release.yml, environment
crates-io.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 20c62ca commit 657249b
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
132 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
0 commit comments