Commit f914ffd
Migrate NuGet publishing to trusted publishing (OIDC)
Replace the long-lived NuGet API key secret with short-lived,
OIDC-issued credentials via NuGet trusted publishing:
- Add id-token: write permission for GitHub OIDC token issuance
- Add a NuGet/login@v1 step that exchanges the OIDC token for a
short-lived API key (username from the NUGET_USER secret)
- Push using the short-lived key instead of
secrets.SILLSDEV_PUBLISH_NUGET_ORG
The login step currently runs on every build (no gating condition)
to validate the trusted publishing policy end-to-end; it will be
restored to run only on publish once confirmed working.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 78cb077 commit f914ffd
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
86 | | - | |
| 93 | + | |
0 commit comments