Repository navigation
Commit 2f98c14
authored
Switch NuGet release publishing from API key to OIDC trusted publishing (#568)
* Switch NuGet release publishing from API key to OIDC trusted publishing
Replaces the long-lived NUGET_API_KEY secret with GitHub OIDC token
exchange via NuGet/login@v1, keeping --skip-duplicate so a job retry
after a partial failure doesn't fail on the already-published version.
* Scope release job to the release GitHub Environment for OIDC
Matches the Environment field on the nuget.org Trusted Publishing policy, so the OIDC token carries the environment claim it expects.1 parent ca66d2e commit 2f98c14
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
62 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments