Skip to content

Add NuGet lock file to close CVE-scan coverage gap - #180

Merged
nthmost-orkes merged 1 commit into
mainfrom
fix/dependency-cves-2026-10
Oct 23, 2026
Merged

nthmost-orkes merged 1 commit into
mainfrom
fix/dependency-cves-2026-10

Conversation

@nthmost-orkes

Copy link
Copy Markdown
Contributor

Closes the csharp-sdk CVE-scan blind spot.

The nightly Trivy scan reads resolved dependencies from a lock file. csharp-sdk committed none, so a bare .csproj (version ranges, no pinned transitive graph) was unscannable and the SDK showed a false-clean 0 -- a blind spot, not a clean bill.

This enables RestorePackagesWithLockFile on the shipping Conductor project and commits packages.lock.json, so the full resolved transitive tree is visible to the scan going forward.

Current state: with the lock file in place, the resolved tree scans clean (0 HIGH/CRITICAL via Trivy) -- so this is purely a visibility fix, nothing to remediate today. dotnet restore --locked-mode passes.

User impact: none at runtime; this makes future dependency CVEs in the C# SDK actually detectable instead of silently missed.

The Trivy scan reads resolved deps from a lock file; a bare .csproj isn't
scannable, so csharp-sdk showed a false-clean 0. Enable RestorePackagesWithLockFile
on the shipping Conductor project and commit packages.lock.json so transitive
deps are visible to the scan. Current resolved tree scans clean (0 HIGH/CRITICAL).
@nthmost-orkes
nthmost-orkes requested a review from c4lm October 20, 2026 09:59
@nthmost-orkes
nthmost-orkes merged commit 1d54330 into main Oct 23, 2026
10 checks passed
@nthmost-orkes
nthmost-orkes deleted the fix/dependency-cves-2026-10 branch October 23, 2026 08:08
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.

2 participants