Commit edd63c2
feat: add PyPI trusted publishing support
Add `useTrustedPublishing` field to PyPi publishing config to enable
OIDC-based trusted publishing instead of token-based authentication.
Changes:
- Add `UseTrustedPublishing` field to `PyPi` struct
- Make `Token` field optional when using trusted publishing
- Update `Validate()` to error if both token and trusted publishing are set
- Update `IsPublished()` to recognize trusted publishing as valid config
- Update JSON schema with new field and descriptions
Usage:
```yaml
targets:
python-sdk:
target: python
source: my-source
publish:
pypi:
useTrustedPublishing: true
```
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2adb2f8 commit edd63c2
2 files changed
+25
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
329 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
330 | 338 | | |
331 | 339 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | 340 | | |
336 | 341 | | |
337 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
201 | 208 | | |
202 | 209 | | |
203 | 210 | | |
| |||
262 | 269 | | |
263 | 270 | | |
264 | 271 | | |
265 | | - | |
266 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
267 | 277 | | |
268 | 278 | | |
269 | 279 | | |
| |||
0 commit comments