Repository navigation
Enable NuGet Audit for security vulnerability scanning - #51470
marcpopMSFT with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: marcpopMSFT <[email protected]>
|
/backport to release/8.0.4xx |
|
Started backporting to |
|
@marcpopMSFT backporting to git am output$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Creating an empty commit: Initial plan
Applying: Enable NuGet Audit in Directory.Build.props
Using index info to reconstruct a base tree...
M Directory.Build.props
Falling back to patching base and 3-way merge...
Auto-merging Directory.Build.props
CONFLICT (content): Merge conflict in Directory.Build.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0002 Enable NuGet Audit in Directory.Build.props
Error: The process '/usr/bin/git' failed with exit code 128 |
|
@marcpopMSFT I agree that we should get this re-enabled. Especially in servicing branches. |
|
@ViktorHofer closing in favor of the backport PR: #51618 Note that I'm wishy washy on this. We already have CG to detect these and CG gives us a window to fix them whereas audit will fail right away. Many flagged by CG turn out to be challenging to resolve because of transitive dependencies as well. We'll see if it flags anything and can always disable it again. |
|
Understood. NuGet Audit runs in the VMR so we get coverage for the product sdk artifacts automatically. If NuGet Audit flags something in the VMR, we need to fix it there immediately and stuff will then backflow into sdk. Ideally NuGet Audit in this repo would be configured in a way that the build is never blocked, either as warnings or post build analysis results. As long as it runs in the VMR on production builds, we are covered. One of our overall goals has been to remove the noise and false positives. Thanks to NuGet package pruning this has got much better. The remaining noise that I'm aware of is around compile time only dependencies. I usually flag those via Btw merge conflicts seem to have happened: Lines 95 to 107 in 96683a0 |
NuGet Audit was previously disabled. This re-enables it to detect vulnerable packages during restore.
Changes
Directory.Build.props:NuGetAudit=true- Enable scanningNuGetAuditLevel=low- Report all severity levelsNuGetAuditMode=all- Audit direct and transitive dependenciesCurrent package set has no known vulnerabilities.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.