1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Ignore domain not having roles.

This commit is contained in:
Sascha L. Teichmann 2023-06-19 13:49:31 +02:00
parent d5589a018d
commit 421a05d421

View file

@ -271,6 +271,11 @@ func (p *processor) run(domains []string) (*Report, error) {
continue continue
} }
if domain.Role == nil {
log.Printf("No role found in meta data. Ignoring domain %q\n", d)
continue
}
rules := roleRequirements(*domain.Role) rules := roleRequirements(*domain.Role)
// TODO: store error base on rules eval in report. // TODO: store error base on rules eval in report.
if rules == nil { if rules == nil {