Skip to content

[pull] develop from cake-build:develop#233

Merged
pull[bot] merged 2 commits into
QaColony:developfrom
cake-build:develop
Jul 17, 2026
Merged

[pull] develop from cake-build:develop#233
pull[bot] merged 2 commits into
QaColony:developfrom
cake-build:develop

Conversation

@pull

@pull pull Bot commented Jul 17, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

devlead and others added 2 commits July 16, 2026 16:31
Add `GitHubActionsCommands.NuGetLogin` to exchange a GitHub Actions OIDC
identity token for a short-lived NuGet.org API key, enabling trusted publishing
from Cake scripts without storing long-lived credentials.

- Add `GitHubNuGetLoginSettings` with defaults for NuGet token service URL and OIDC audience
- Add internal `GitHubNuGetLoginService` to request the OIDC JWT from GitHub and exchange it with the NuGet token service
- Add source-generated JSON models and serialization context for OIDC and token exchange payloads
- Wire `NuGetLogin` overloads on `GitHubActionsCommands` (username-only and settings-based)
- Add unit tests with a fake `HttpMessageHandler` fixture covering success, validation, and HTTP failure paths
- Add optional GitHub Actions integration test gated on `CAKE_INTEGRATIONTEST_NUGET_USERNAME`
- Integration test Validate NuGetLogin API key with nuget.org verify-scope protocol Extend the GitHub Actions NuGetLogin integration test to confirm the OIDC-exchanged API key is accepted by nuget.org using the verify-scope create-verification-key and
verifykey APIs.
- fixes #4945
GH4945: Add GitHub Actions NuGetLogin for OIDC
@pull pull Bot locked and limited conversation to collaborators Jul 17, 2026
@pull pull Bot added the ⤵️ pull label Jul 17, 2026
@pull
pull Bot merged commit 59eb19d into QaColony:develop Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants