-
Notifications
You must be signed in to change notification settings - Fork 92
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
Adds an entry point for the sbom-tool use the ScanCommand class. #936
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #936 +/- ##
=====================================
Coverage 74.9% 74.9%
=====================================
Files 235 235
Lines 9996 10002 +6
Branches 981 981
=====================================
+ Hits 7488 7494 +6
Misses 2234 2234
Partials 274 274 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, pending a look from Fern on why Rust is failing on the ubuntu build I will merge.
Thanks! @cobya I added unit tests since I saw the codecov comments. |
…rosoft#936) * Add Author/License to LinuxComponent * Add method to scan that returns a ScanResult Object * Revert "Add Author/License to LinuxComponent" This reverts commit 643dc09. * Add unit tests --------- Co-authored-by: Sebastian Gomez <segomez@microsoft.com>
Currently the ScanCommand class returns an int. In the sbom-tool we rely on the ScanResult object which forced us to go a step below and use the ScanExecution itself. This is causing us to miss out on a few features such as the ability to write a ScanManifest file (microsoft/sbom-tool#452).
This PR adds an extra method to the ScanCommand class that returns a ScanResult object instead of an int.
Let me know if there is more suitable name the current name is "ExecuteAsync" the method I added is "ExecuteScanAsync"