Skip to content

Use NuGet trusted publishing for release packages - #2444

Merged
Rafael-SOWNet merged 2 commits into
masterfrom
chore/nuget-trusted-publishing
Nov 14, 2026
Merged

Rafael-SOWNet merged 2 commits into
masterfrom
chore/nuget-trusted-publishing

Conversation

@Happypig375

@Happypig375 Happypig375 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

The release workflow currently publishes four packages with a stored NuGet API key. Pack all four, then obtain one short-lived credential through NuGet trusted publishing and reuse it for the four pushes in their existing order.

The NuGet policy must match ASC-Community / AngouriMath / Nuget.yml, with no environment and scopes permitting all four package IDs.

Validation: actionlint and a structural comparison of the release workflow passed. A live token exchange and package publication were not run.

@codecov

codecov Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.93%. Comparing base (eec3588) to head (dfb819d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2444      +/-   ##
==========================================
- Coverage   86.93%   86.93%   -0.01%     
==========================================
  Files         315      316       +1     
  Lines       70509    70574      +65     
  Branches    20606    20613       +7     
==========================================
+ Hits        61297    61353      +56     
- Misses       4941     4948       +7     
- Partials     4271     4273       +2     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.47% <ø> (-0.01%) ⬇️
fsharp 32.97% <ø> (ø)
interactive 39.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Happypig375

Happypig375 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

@Rafael-SOWNet Use this to publish instead of the NuGet API key. This login has access to publishing new versions, new packages, staging and delisting/relisting old packages. Modify as you wish except that yml file renames need me to update the authorization on NuGet

@Rafael-SOWNet
Rafael-SOWNet merged commit fbbce18 into master Nov 14, 2026
28 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 14, 2026
Rafael-SOWNet added a commit that referenced this pull request Nov 14, 2026
A release event runs the workflow as it stood at the tagged commit, so a
release whose publish failed cannot be retried under a newer workflow by
re-running it. A workflow_dispatch with the tag checks the tag out and
packs it as the release would, with the login from the default branch's
workflow, which is the one the trusted-publishing policy names. The tag
reaches the shell through the environment rather than interpolated into
the script.

2.7.0's run failed on the expired API key before #2444; this publishes it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants