-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/docs-add-homebrew-install
- Loading branch information
Showing
20 changed files
with
56 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
src/Microsoft.Sbom.Api/Converters/SerilogLoggerConverter.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,20 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Microsoft.ComponentDetection.Common; | ||
using Microsoft.ComponentDetection.Contracts.BcdeModels; | ||
using Microsoft.ComponentDetection.Orchestrator; | ||
using Microsoft.ComponentDetection.Orchestrator.Services; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Microsoft.Sbom.Api.Utils; | ||
|
||
/// <summary> | ||
/// A component detector wrapper, used for unit testing. | ||
/// </summary> | ||
public class ComponentDetector : IComponentDetector | ||
public class ComponentDetector | ||
{ | ||
private readonly IServiceProvider serviceProvider; | ||
private readonly IEnumerable<IArgumentHandlingService> argumentHandlers; | ||
private readonly IFileWritingService fileWritingService; | ||
private readonly IArgumentHelper argumentHelper; | ||
private readonly ILogger<Orchestrator> logger; | ||
|
||
public ComponentDetector( | ||
IServiceProvider serviceProvider, | ||
IEnumerable<IArgumentHandlingService> argumentHandlers, | ||
IFileWritingService fileWritingService, | ||
IArgumentHelper argumentHelper, | ||
ILogger<Orchestrator> logger) | ||
{ | ||
this.serviceProvider = serviceProvider; | ||
this.argumentHandlers = argumentHandlers; | ||
this.fileWritingService = fileWritingService; | ||
this.argumentHelper = argumentHelper; | ||
this.logger = logger; | ||
} | ||
|
||
public virtual async Task<ScanResult> ScanAsync(string[] args) | ||
{ | ||
var orchestrator = new Orchestrator( | ||
serviceProvider, | ||
argumentHandlers, | ||
fileWritingService, | ||
argumentHelper, | ||
logger); | ||
|
||
var orchestrator = new Orchestrator(); | ||
return await orchestrator.LoadAsync(args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....Sbom.Extensions.DependencyInjection/Microsoft.Sbom.Extensions.DependencyInjection.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.