Repository navigation
Commit 2810cf1
release: switch npm publish to trusted publishing (OIDC)
NPM_TOKEN creation is blocked by the npm account's 2FA requirement.
Trusted publishing removes the need for a stored token entirely:
- setup-node@v5 -> @v6 (v5 and earlier write an empty _authToken line
to .npmrc when no NODE_AUTH_TOKEN is set, which breaks the OIDC
handshake - actions/setup-node#1551)
- drop NODE_AUTH_TOKEN/secrets.NPM_TOKEN from the publish step env
(id-token: write + --provenance already present, unchanged)
- README/ADR 0021: document the one-time bootstrap npm trusted
publishing requires - fleet-ctl has never been published, so there
is no npmjs.com settings page yet to configure a Trusted Publisher
on. Needs one manual `npm publish --access public` (interactive
2FA OTP, not a CI credential) to reserve the name, then adding
release.yml as fleet-ctl's Trusted Publisher.1 parent 9e13b82 commit 2810cf1
3 files changed
Lines changed: 24 additions & 16 deletions
File tree
- .github/workflows
- docs/adr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| |||
0 commit comments