diff --git a/cmd/csaf_checker/processor.go b/cmd/csaf_checker/processor.go index 224e225..5c4f66e 100644 --- a/cmd/csaf_checker/processor.go +++ b/cmd/csaf_checker/processor.go @@ -584,6 +584,10 @@ func (p *processor) rolieFeedEntries(feed string) ([]csaf.AdvisoryFile, error) { var file csaf.AdvisoryFile switch { + case sha256 == "" && sha512 != "": + p.badROLIEFeed.info("%s has no sha256 hash file listed", url) + case sha256 != "" && sha512 == "": + p.badROLIEFeed.info("%s has no sha512 hash file listed", url) case sha256 == "" && sha512 == "": p.badROLIEFeed.error("No hash listed on ROLIE feed %s", url) case sign == "": diff --git a/testdata/processor-requirements/sha256-rolie.json b/testdata/processor-requirements/sha256-rolie.json index 5875174..4ed47f1 100644 --- a/testdata/processor-requirements/sha256-rolie.json +++ b/testdata/processor-requirements/sha256-rolie.json @@ -153,7 +153,7 @@ "messages": [ { "type": 0, - "text": "All checked ROLIE feeds validated fine." + "text": "{{.URL}}/white/avendor-advisory-0004.json has no sha512 hash file listed" } ] }, diff --git a/testdata/processor-requirements/sha512-rolie.json b/testdata/processor-requirements/sha512-rolie.json index 5875174..a2a195d 100644 --- a/testdata/processor-requirements/sha512-rolie.json +++ b/testdata/processor-requirements/sha512-rolie.json @@ -153,7 +153,7 @@ "messages": [ { "type": 0, - "text": "All checked ROLIE feeds validated fine." + "text": "{{.URL}}/white/avendor-advisory-0004.json has no sha256 hash file listed" } ] },