Skip to content

Fix CsWin32 update workflow NuGet MCP tool name - #70244

Merged
DeagleGross merged 1 commit into
dotnet:mainfrom
DeagleGross:deaglegross-cswin32-workflow-fix
Nov 2, 2026
Merged

DeagleGross merged 1 commit into
dotnet:mainfrom
DeagleGross:deaglegross-cswin32-workflow-fix

Conversation

@DeagleGross

Copy link
Copy Markdown
Member

Fix the CsWin32 update agentic workflow's NuGet MCP tool allowlist

Description

The scheduled cswin32-update run failed because the agent had no NuGet tools. The workflow allowlisted get-latest-package-version (hyphens), but the NuGet MCP server advertises get_latest_package_version (underscores). The gateway filtered out every tool (tools/list returned 0 tools for 'nuget'), so the agent called report_incomplete and never attempted create_pull_request. The conclusion job then failed the run.

Changes:

  • cswin32-update.md: use get_latest_package_version in the allowlist and the Step 1 prompt. Remove the unsupported "blocked by the network firewall" claim; api.nuget.org was already allowed. The agent now reports a tool discovery failure instead of assuming a firewall block.
  • cswin32-update.lock.yml: regenerated with gh-aw v0.92.0 (the version that compiled the existing lock file).

Validation:

  • gh aw compile cswin32-update --strict --schedule-seed dotnet/aspnetcore --no-check-update: succeeded, 0 warnings.
  • Script check: the source allowlist, the compiled manifest, and the agent permissions all match the tool name in the failed run's real NuGet tools/list response: passed.
  • Not run: a live end-to-end run. Please trigger workflow_dispatch after merge to confirm.

Failed run: https://github.com/dotnet/aspnetcore/actions/runs/41256731797

Use the advertised get_latest_package_version tool and correct the prompt's unsupported firewall diagnosis.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 10:40
@DeagleGross
DeagleGross requested review from a team and wtgodbe as code owners November 2, 2026 10:40
@DeagleGross DeagleGross self-assigned this Nov 2, 2026
@DeagleGross DeagleGross added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the NuGet tool-discovery update in the dependency-update workflow.

No open issues 🎉

What changed in this PR

Fixes NuGet tool discovery in the CsWin32 dependency-update workflow so the agent can check for newer package versions.

Changes:

  • Corrects the tool name to get_latest_package_version in the source allowlist, prompt, and generated configuration.
  • Replaces the unsupported firewall explanation with instructions to report tool discovery failures.
  • Regenerates the lock file using the existing gh-aw compiler version.

The PR reports successful compilation and tool-name consistency checks; live end-to-end validation remains pending.

File Description
.github/​workflows/​cswin32-update.md Corrects the NuGet tool name and failure-reporting instructions.
.github/​workflows/​cswin32-update.lock.yml Updates generated metadata, gateway configuration, and agent permissions.

Review effort: Balanced

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

@DeagleGross
DeagleGross enabled auto-merge (squash) November 2, 2026 10:44
@PureWeen

PureWeen commented Nov 2, 2026

Copy link
Copy Markdown
Member

/review

@DeagleGross
DeagleGross merged commit ee0570d into dotnet:main Nov 2, 2026
23 checks passed
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR is limited to repository automation (CsWin32 update workflow tool allowlist fix).

Documentation surfaces considered

  • Conceptual article: Not required — Only repository CI/agentic workflow files changed; no user-facing behavior.
  • Migration guidance: Not required — No upgrade impact for users.
  • Breaking change: Not required — No compatibility impact; no signals found.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — bf3cc85d Deployed Nov 2, 2026 by DeagleGross via conclusion #152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants