Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable NuGetAuditSuppress for packages.config CLI restore #5875

Merged
merged 5 commits into from
Jul 5, 2024

Conversation

advay26
Copy link
Contributor

@advay26 advay26 commented Jun 26, 2024

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/2691

Regression? Last working version:

Description

Enables NuGetAuditSuppress for packages.config CLI restore (msbuild, static graph restore, nuget.exe).

  • AuditChecker.cs - core logic
  • NuGet.targets - enable collection of NuGetAuditSuppress items
  • AuditCheckResult.cs - telemetry
  • test/ - unit tests and func tests

NuGetAuditSuppress PackageReference CLI restore PR: #5679

NOTE: nuget.exe restore using a packages.config file does not work since it does not currently pick up any of the NuGetAudit settings from the project file (including NuGetAudit and NuGetAuditLevel). Audit still runs, but it uses default settings.

PR Checklist

@advay26 advay26 marked this pull request as ready for review June 27, 2024 00:09
@advay26 advay26 requested a review from a team as a code owner June 27, 2024 00:09
Copy link
Member

@zivkan zivkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope another reviewer looks more closely at the tests than I did, but it LGTM. Thanks!

@advay26 advay26 merged commit f6bd7cb into dev Jul 5, 2024
28 checks passed
@advay26 advay26 deleted the dev-advay26-nugetauditsuppress-packagesconfig branch July 5, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants