1
0
Fork 0
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:
Sascha L. Teichmann 2021-12-02 10:51:25 +01:00
parent e5a6a8e2da
commit f77bb5f1a8
4 changed files with 66 additions and 8 deletions

View file

@ -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
}