Skip to content

Restore NuGet API-key publishing - #224

Merged
peters merged 1 commit into
mainfrom
fix/nuget-api-key-publish
Aug 13, 2026
Merged

Restore NuGet API-key publishing#224
peters merged 1 commit into
mainfrom
fix/nuget-api-key-publish

Conversation

@peters

@peters peters commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore NuGet.org publishing through the existing organization API-key secret
  • keep the credential scoped to the single NuGet.org push step and fail explicitly when it is unavailable
  • preserve immutable package verification, duplicate-safe recovery, and the separate GitHub Packages push

Root cause

The beta release recovery switched NuGet.org authentication to Trusted Publishing, but token exchange returned HTTP 401 because no matching trust policy existed for the configured policy creator. The previous API-key path has proven successful publication history in this repository and another organization repository.

Impact

New releases and existing-tag recovery dispatches can publish the already-verified package to NuGet.org without changing the tagged source or release assets. GitHub Packages continues to use the workflow token.

Validation

  • ./scripts/sync-surge-core-vendor.sh --check
  • ./scripts/check-version-sync.sh
  • cargo fmt --all -- --check
  • RUSTFLAGS="-D warnings" cargo test --workspace
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo clippy --workspace --lib --bins --examples -- -D warnings -D clippy::unwrap_used -D clippy::expect_used
  • cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::pedantic
  • dotnet format dotnet/Surge.slnx --verify-no-changes
  • dotnet test dotnet/Surge.slnx --configuration Release
  • actionlint 1.7.12
  • YAML parse and changed shell-block syntax checks

Migration notes

The existing organization API-key secret must remain available to this repository.

@peters
peters marked this pull request as ready for review August 13, 2026 06:38
@peters
peters merged commit 098555c into main Aug 13, 2026
15 checks passed
@peters
peters deleted the fix/nuget-api-key-publish branch August 13, 2026 06:47
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