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

Give out warning instead of info if any of the provider-metadata.json lookups could not be performed.

This commit is contained in:
JanHoefelmeyer 2023-06-06 13:20:14 +02:00
parent 9d1000d773
commit c3ef8e604c

View file

@ -270,7 +270,7 @@ func (r *providerMetadataReport) report(p *processor, domain *Domain) {
func (r *securityReporter) report(p *processor, domain *Domain) { func (r *securityReporter) report(p *processor, domain *Domain) {
req := r.requirement(domain) req := r.requirement(domain)
if !p.badSecurity.used() { if !p.badSecurity.used() {
req.message(InfoType, "Performed no in-depth test of security.txt.") req.message(WarnType, "Performed no in-depth test of security.txt.")
return return
} }
if len(p.badSecurity) == 0 { if len(p.badSecurity) == 0 {
@ -284,7 +284,7 @@ func (r *securityReporter) report(p *processor, domain *Domain) {
func (r *wellknownMetadataReporter) report(p *processor, domain *Domain) { func (r *wellknownMetadataReporter) report(p *processor, domain *Domain) {
req := r.requirement(domain) req := r.requirement(domain)
if !p.badWellknownMetadata.used() { if !p.badWellknownMetadata.used() {
req.message(InfoType, "Since no valid provider-metadata.json was found, no extended check was performed.") req.message(WarnType, "Since no valid provider-metadata.json was found, no extended check was performed.")
return return
} }
if len(p.badWellknownMetadata) == 0 { if len(p.badWellknownMetadata) == 0 {
@ -298,7 +298,7 @@ func (r *wellknownMetadataReporter) report(p *processor, domain *Domain) {
func (r *dnsPathReporter) report(p *processor, domain *Domain) { func (r *dnsPathReporter) report(p *processor, domain *Domain) {
req := r.requirement(domain) req := r.requirement(domain)
if !p.badDNSPath.used() { if !p.badDNSPath.used() {
req.message(InfoType, "No check about contents from https://csaf.data.security.DOMAIN performed.") req.message(WarnType, "No check about contents from https://csaf.data.security.DOMAIN performed.")
return return
} }
if len(p.badDNSPath) == 0 { if len(p.badDNSPath) == 0 {