mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Added default publisher if not configured. Warning if uploads don't have the same publisher as in metadata.
This commit is contained in:
parent
e5a6a8e2da
commit
f77bb5f1a8
4 changed files with 66 additions and 8 deletions
|
|
@ -113,5 +113,13 @@ func loadConfig() (*config, error) {
|
|||
cfg.OpenPGPURL = defaultOpenPGPURL
|
||||
}
|
||||
|
||||
if cfg.Publisher == nil {
|
||||
cfg.Publisher = &csaf.Publisher{
|
||||
Category: func(c csaf.Category) *csaf.Category { return &c }(csaf.CSAFCategoryVendor),
|
||||
Name: func(s string) *string { return &s }("ACME"),
|
||||
Namespace: func(s string) *string { return &s }("https://example.com"),
|
||||
}
|
||||
}
|
||||
|
||||
return &cfg, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue