mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Treat invalid PMDs as error and stop processing if needed
* Improve how PMD validation result is used when searching for a valid PMD. We now stop if no PMD can be validated against the json schema.
This commit is contained in:
parent
3bb8ea0019
commit
70b4e18b58
4 changed files with 23 additions and 12 deletions
|
|
@ -1062,7 +1062,7 @@ func (p *processor) checkProviderMetadata(domain string) error {
|
|||
|
||||
lpmd := csaf.LoadProviderMetadataForDomain(client, domain, p.badProviderMetadata.warn)
|
||||
|
||||
if lpmd == nil {
|
||||
if !lpmd.Valid() {
|
||||
p.badProviderMetadata.error("No valid provider-metadata.json found.")
|
||||
p.badProviderMetadata.error("STOPPING here - cannot perform other checks.")
|
||||
return errStop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue