mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +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:
parent
13cd14738b
commit
8bf48a2de2
2 changed files with 2 additions and 2 deletions
|
|
@ -924,7 +924,7 @@ func (p *processor) checkPGPKeys(domain string) error {
|
|||
|
||||
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 {
|
||||
p.badPGPs.add("No public OpenPGP keys found: %v.", err)
|
||||
return errContinue
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ type ProviderMetadata struct {
|
|||
ListOnCSAFAggregators *bool `json:"list_on_CSAF_aggregators"`
|
||||
MetadataVersion *MetadataVersion `json:"metadata_version"` // 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
|
||||
Role *MetadataRole `json:"role"` // required
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue