mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Also generate report when role is not available
This commit is contained in:
parent
02d4931152
commit
3f4fe5cf18
1 changed files with 5 additions and 4 deletions
|
|
@ -255,8 +255,7 @@ func (p *processor) run(domains []string) (*Report, error) {
|
||||||
log.Printf("Could not parse the Provider-Metadata.json of: %s\n", d)
|
log.Printf("Could not parse the Provider-Metadata.json of: %s\n", d)
|
||||||
}
|
}
|
||||||
if err := p.checkDomain(d); err != nil {
|
if err := p.checkDomain(d); err != nil {
|
||||||
log.Printf("Failed to find valid provider-metadata.json for domain %s: %v. "+
|
log.Printf("Failed to find valid provider-metadata.json for domain %s: %v. ", d, err)
|
||||||
"Continuing with next domain.", d, err)
|
|
||||||
}
|
}
|
||||||
domain := &Domain{Name: d}
|
domain := &Domain{Name: d}
|
||||||
|
|
||||||
|
|
@ -267,8 +266,10 @@ func (p *processor) run(domains []string) (*Report, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if domain.Role == nil {
|
if domain.Role == nil {
|
||||||
log.Printf("No role found in meta data. Ignoring domain %q\n", d)
|
log.Printf("No role found in meta data for domain %q\n", d)
|
||||||
continue
|
// Assume provider to continue report generation
|
||||||
|
role := csaf.MetadataRolePublisher
|
||||||
|
domain.Role = &role
|
||||||
}
|
}
|
||||||
|
|
||||||
rules := roleRequirements(*domain.Role)
|
rules := roleRequirements(*domain.Role)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue