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

Provider: fix default metadata role defaults to trusted now. Solves #36 (issue) (#166)

* Change provider's default metadata role to `csaf_trusted_provider`.

solve #36
This commit is contained in:
Sascha L. Teichmann 2022-06-09 12:57:22 +02:00 committed by GitHub
parent c09e5f66f3
commit 776a08578b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ func (ts TimeStamp) MarshalText() ([]byte, error) {
// Defaults fills the correct default values into the provider metadata.
func (pmd *ProviderMetadata) Defaults() {
if pmd.Role == nil {
role := MetadataRoleProvider
role := MetadataRoleTrustedProvider
pmd.Role = &role
}
if pmd.ListOnCSAFAggregators == nil {