Skip to content

Push releases to nuget.org with trusted publishing - #146

Merged
ipjohnson merged 1 commit into
mainfrom
chat/515b3420-trusted-publishing
Nov 28, 2026
Merged

ipjohnson merged 1 commit into
mainfrom
chat/515b3420-trusted-publishing

Conversation

@ipjohnson

Copy link
Copy Markdown
Owner

The v1.8.0 release run failed at "Push to nuget.org" with 403 (The specified API key has expired). The NUGET_API_KEY secret dates from 2026-08-07.

This switches release.yaml to nuget.org trusted publishing, the same way VerificationGlue's release.yml does. NuGet/login@v1 exchanges the workflow's OIDC token for a push key that lasts one hour, and the push step uses that key. The workflow gets id-token: write. The GitHub Packages push and the GitHub release are unchanged.

Before this works:

  • nuget.org needs a trusted publishing policy that names ipjohnson/DependencyModules and release.yaml.
  • The repository needs a NUGET_USER secret with the nuget.org account that owns the policy. It has only NUGET_API_KEY today.

Not run: the workflow itself. It runs only on a v* tag or a dispatch from main. The YAML parses.

After this merges, 1.8.0 can be published with a workflow_dispatch of release on main with version 1.8.0. A rerun of the failed run would use the old workflow file from the v1.8.0 tag.

🤖 Generated with Claude Code

The NUGET_API_KEY secret expired and the v1.8.0 push failed with 403.
NuGet/login exchanges the workflow's OIDC token for a one-hour key,
as VerificationGlue's release workflow does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ipjohnson
ipjohnson merged commit 9d4c484 into main Nov 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant