Skip to content

Commit

Permalink
crazy idea: limit scope of scan to NuGet packages and tell CG to not …
Browse files Browse the repository at this point in the history
…print a report to stdout
  • Loading branch information
baronfel committed Feb 17, 2025
1 parent 3ed6d7b commit 8f4c123
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -108,6 +108,8 @@ async Task Scan(string path)
var cmdLineParams = configuration.ToComponentDetectorCommandLineParams(cliArgumentBuilder);

var scanSettings = cliArgumentBuilder.BuildScanSettingsFromParsedArgs(cmdLineParams);
scanSettings.NoSummary = true;
scanSettings.DetectorCategories = ["NuGet"];

var scanResult = await componentDetector.ScanAsync(scanSettings);

0 comments on commit 8f4c123

Please sign in to comment.