-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Labels
acceptedWe are working on this and hope to release it into the productWe are working on this and hope to release it into the product
Description
Current Behaviour
While validating a buildDropPath where one of the files has been intentionally tampered with, passing a directory to the outputPath parameter of the SbomValidator.ValidateSbomAsync method, the returned SBOMValidationResult has the IsSuccessful property set to true.
Expected Behaviour
While validating a buildDropPath where one of the files has been intentionally tampered with, passing a directory to the outputPath parameter of the SbomValidator.ValidateSbomAsync method, the returned SBOMValidationResult has the IsSuccessful property set to false.
Alternatively, an exception should be thrown if the output file cannot be written to.
Steps to Reproduce
- Created an artifact and generate an SBOM
- Tamper with one of the files so that hash changes
- Call
ISBOMValidator.ValidateSbomAsyncwith theoutputPathparameter as an existing directory path - Inspect returned result
Additonal Context
Library version used: 3.1.0
Copilot
Metadata
Metadata
Labels
acceptedWe are working on this and hope to release it into the productWe are working on this and hope to release it into the product