Commit 2c26c1b
CD: switch gem-push to RubyGems Trusted Publishing (OIDC)
`gem push` fails since MFA was enabled on the RubyGems account —
the API-key flow can't supply an OTP from a non-interactive
runner. Trusted publishing is the supported replacement and is
already configured on rubygems.org for this gem (pointed at this
workflow file, no GitHub Environment binding).
Changes:
- Add `id-token: write` to job permissions (required for the
GitHub OIDC token exchange).
- Remove unused `packages: write` permission (was for GitHub
Packages, never wired up).
- Replace the manual credentials-file dance + `GEM_HOST_API_KEY`
env var with `rubygems/configure-rubygems-credentials@v2.0.0`
(same action `rubygems/release-gem@v1` calls internally —
verified by reading its action.yml). Existing `gem build` +
`gem push` then read credentials the action sets up.
No new secrets. `RUBYGEMS_AUTH_TOKEN` becomes obsolete and should
be deleted from repo Settings → Secrets after the first green
dispatch.
Tracks LOC-6563.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 52e61e2 commit 2c26c1b
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
29 | | - | |
| 25 | + | |
0 commit comments