fleetlint Policy for a fleet of repositories
v0.7
Getting started

release/signing/nuget

Release artifacts are signed

Implements release/signing for the nuget artifact: it runs when the release publishes one (see artifacts).

Severityerror
Tiers1
Artifactnuget
Scoperoot
Kindoutcome
Sourcelibrary v0.4.0
Selected byfleetlint-recommended@v0.4.0

Requirement

NuGet packages are signed (dotnet nuget sign) or the binaries inside carry an Authenticode signature (signtool, Azure Trusted Signing) in the workflow that pushes them. nuget.org adds its own repository signature on upload; that proves the registry, not the author.

Why

Checksums prove integrity; only a signature proves who built it.

Capability applies when

release.exists || repo.artifacts.size() > 0

Fix

Sign packages with dotnet nuget sign (or binaries with signtool / Azure Trusted Signing) before dotnet nuget push.

Agent instruction: Use the artifact’s own signing format when it has one. Otherwise add sigstore/cosign-installer and a signing step after the artifacts are built. Files: cosign sign-blob --yes --bundle checksums.txt.sigstore.json checksums.txt and upload the bundle. Container image: cosign sign --yes <image>@<digest> using the digest output of the build step, with id-token: write on the job.

Sources


Generated by fleetlint docs from catalog v0.4.0.