1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Adjust provider for new CSAF CSD02 schema

* Replace "pgp_keys" with "public_openpgp_key" in the provider-metadata.json.

resolve #112
This commit is contained in:
Fadi Abbud 2022-04-28 20:46:37 +02:00 committed by GitHub
parent 13cd14738b
commit 8bf48a2de2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -924,7 +924,7 @@ func (p *processor) checkPGPKeys(domain string) error {
p.badPGPs.use() p.badPGPs.use()
src, err := p.expr.Eval("$.pgp_keys", p.pmd) src, err := p.expr.Eval("$.public_openpgp_keys", p.pmd)
if err != nil { if err != nil {
p.badPGPs.add("No public OpenPGP keys found: %v.", err) p.badPGPs.add("No public OpenPGP keys found: %v.", err)
return errContinue return errContinue

View file

@ -157,7 +157,7 @@ type ProviderMetadata struct {
ListOnCSAFAggregators *bool `json:"list_on_CSAF_aggregators"` ListOnCSAFAggregators *bool `json:"list_on_CSAF_aggregators"`
MetadataVersion *MetadataVersion `json:"metadata_version"` // required MetadataVersion *MetadataVersion `json:"metadata_version"` // required
MirrorOnCSAFAggregators *bool `json:"mirror_on_CSAF_aggregators"` // required MirrorOnCSAFAggregators *bool `json:"mirror_on_CSAF_aggregators"` // required
PGPKeys []PGPKey `json:"pgp_keys,omitempty"` PGPKeys []PGPKey `json:"public_openpgp_keys,omitempty"`
Publisher *Publisher `json:"publisher,omitempty"` // required Publisher *Publisher `json:"publisher,omitempty"` // required
Role *MetadataRole `json:"role"` // required Role *MetadataRole `json:"role"` // required
} }