NuGet Trusted Publishing

•
1.2k
•

Sets up OIDC-based NuGet trusted publishing on GitHub Actions to eliminate long-lived API keys and enhance package security.

This skill automates the transition to secure, keyless NuGet publishing by guiding developers through a structured OIDC setup. It identifies packable .NET projects—including libraries, tools, MCP servers, and templates—validates metadata, and generates the necessary GitHub Actions workflows. By leveraging OpenID Connect (OIDC), it replaces static secrets with short-lived tokens, reducing the risk of credential leakage and simplifying secret management for .NET developers.

Key Features

01Local verification steps to prevent publishing errors and version number waste
02Guided migration from legacy secrets.NUGET_API_KEY to OIDC-based publishing
03Exact parameter generation for nuget.org trusted publishing policies
04Automated detection of project types (Library, Tool, MCP Server, or Template)
051,215 GitHub stars
06Workflow generation with required id-token:write permissions

Use Cases

01Migrating an existing .NET repository from manual API keys to secure OIDC publishing
02Setting up an automated CI/CD release pipeline for a new .NET library or dotnet tool
03Configuring secure package publishing for Model Context Protocol (MCP) servers