Option to fail when license information cannot be fetched #733
Labels
help wanted
Extra attention is needed
tabled
We like this idea, but we are not going to action on it in the moment
I'm using a pipeline in Azure DevOps Server. I have a custom PowerShell task to install and run sbom-tool.
Occasionally I will see warnings like these:
The underlying problem may be related to #584 but I have a more general issue. I want this task to end in failure as missing the license information is a no-go for me. In other words I'd rather this warning be elevated to an error. Maybe there is a way to do this already but I haven't found one. For example, I tried changing the PowerShell task to set
$WarningPreference = 'Stop'
but that had no effect.sbom-tool/src/Microsoft.Sbom.Api/Executors/LicenseInformationService.cs
Line 61 in 59a68d1
The text was updated successfully, but these errors were encountered: