Commit 252183e
committed
Update release workflow to use OIDC for NuGet auth
Updated the GitHub Actions workflow in `release.yml`:
- Renamed the `build` job to `build-and-publish`.
- Added OIDC-based authentication for NuGet, replacing the use of a long-lived API key with a short-lived token generated during the workflow.
- Introduced a `NuGet login` step using `NuGet/login@v1`.
- Updated `NuGet/setup-nuget` action from `v1.0.6` to `v1.1.1`.
- Updated the `Publish` step to use the short-lived API key.
- Improved security by removing reliance on GitHub Secrets for NuGet API keys.1 parent a447ce0 commit 252183e
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
47 | 57 | | |
48 | | - | |
| 58 | + | |
0 commit comments