• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AKlaus / DomainResult / 44703673078
87%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2026 08:35AM UTC
Jobs 1
Files 22
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Nov 2026 08:34AM UTC coverage: 87.5%. Remained the same
44703673078

push

github

web-flow
CI: Publish to nuget.org with trusted publishing (#112)

### Why

The release pushes with the long-lived `NUGET_API_KEY` secret. nuget.org trusted publishing replaces it with a short-lived key from GitHub OIDC.

### What changed

- **Build job** — builds, tests and packs, then uploads the packages, with `contents: read`
- **Publish job** — runs on a tag push only, in the `nuget` environment, with `id-token: write` only
- **NuGet login** — `NuGet/login`, pinned to the v1.2.0 commit SHA, as user `AlexKlaus`
- **NuGet publish** — pushes the downloaded packages with the key that the login step returns
- **Re-run** — `--skip-duplicate` skips a package that nuget.org already has

Only the publish job can request an OIDC token, so the restore, build and test steps cannot get a nuget.org key. A build step can still alter the packages it uploads, so this narrows the exposure but does not remove it.

### Changes at a glance

| Change | Added | Changed | Removed |
|---|---|---|---|
| CI workflows |  | 1 |  |

**Areas**: `.github`

### How to verify

Before the merge, the package owner must do both of these. Without the policy, the next tag fails to publish.

1. On nuget.org, add a trusted publishing policy for `AKlaus/DomainResult`, workflow `release.yml` and environment `nuget`.
2. On GitHub, under **Settings → Environments → nuget → Deployment branches and tags**, allow only the tag rule `v*`. The nuget.org policy does not check the ref, so this rule stops a manual run from a branch reaching the `nuget` environment.

- [ ] After the first release through trusted publishing, delete the `NUGET_API_KEY` secret and close #97

Part of #97. Follows #111.

_-- AI Assistant_

97 of 114 branches covered (85.09%)

Branch coverage included in aggregate %.

309 of 350 relevant lines covered (88.29%)

21.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44703673078.1 20 Nov 2026 08:35AM UTC 22
87.5
GitHub Action Run
Source Files on build 44703673078
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44703673078
  • be9d1e7e on github
  • Prev Build on master (#44698984411)
  • Next Build on master (#44725752072)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc