
nuget-trusted-publishing
Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo
by dotnetFree
Description
NuGet Trusted Publishing Setup is an agent skill that sets up NuGet trusted publishing with OIDC on a GitHub Actions repository. Trusted publishing replaces long-lived NuGet API keys with short-lived tokens, so there are no secrets to rotate or leak. The skill lists its prerequisites: a GitHub Actions repository, since the skill covers GitHub Actions setup only, and a nuget.org account with access to create trusted publishing policies. It applies when setting up trusted publishing for a NuGet package, moving from a NUGET_API_KEY secret to OIDC-based publishing, or creating a new publish workflow from scratch. It also covers publishing a dotnet tool, an MCP server or a template package. The skill answers requests to remove a NuGet API key, to use the NuGet login action, or to add the id-token write permission. It is published by dotnet/skills on skills.sh with about 4.4K installs.…
Highlights
- Sets up NuGet trusted publishing with OIDC
- Replaces long-lived API keys with short-lived tokens
- Covers GitHub Actions publish workflows
- Moves a repository off a NUGET_API_KEY secret
- Works for tools, MCP servers and template packages
Ratings & Reviews
No ratings yet
Be the first to rate nuget-trusted-publishing.
People also visit

agent-workflow-automation
Agent skill for workflow-automation - invoke with $agent-workflow-automation

gha-security-review
GitHub Actions security review for workflow exploitation vulnerabilities

agent-ops-cicd-github
Agent skill for ops-cicd-github - invoke with $agent-ops-cicd-github
nuget-trusted-publishing FAQ
What is the NuGet Trusted Publishing skill?
It is an instruction set for an AI coding agent that sets up keyless NuGet publishing from GitHub Actions with OIDC.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill nuget-trusted-publishing in your project.
What do I need before starting?
A GitHub Actions repository and a nuget.org account with access to create trusted publishing policies.
Does it cover other CI systems?
No. The skill says it covers GitHub Actions setup only.
Does the skill pass its security audits?
Yes. On skills.sh the audits show Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best nuget-trusted-publishing alternatives?
Popular alternatives to nuget-trusted-publishing include github-release, agent-workflow-automation and gha-security-review. See all nuget-trusted-publishing alternatives











