diff --git a/model/src/main/resources/reference.yml b/model/src/main/resources/reference.yml index 7dbae0cbcbb15..0f436ff46c03f 100644 --- a/model/src/main/resources/reference.yml +++ b/model/src/main/resources/reference.yml @@ -72,6 +72,7 @@ ort: options: restUrl: 'https://your-sw360-rest-url' authUrl: 'https://your-authentication-url' + secrets: username: username password: password clientId: clientId diff --git a/model/src/test/kotlin/config/OrtConfigurationTest.kt b/model/src/test/kotlin/config/OrtConfigurationTest.kt index bc8f9d76aedc4..76ded94e05b42 100644 --- a/model/src/test/kotlin/config/OrtConfigurationTest.kt +++ b/model/src/test/kotlin/config/OrtConfigurationTest.kt @@ -85,7 +85,9 @@ class OrtConfigurationTest : WordSpec({ type = "SW360", options = mapOf( "restUrl" to "https://your-sw360-rest-url", - "authUrl" to "https://your-authentication-url", + "authUrl" to "https://your-authentication-url" + ), + secrets = mapOf( "username" to "username", "password" to "password", "clientId" to "clientId", diff --git a/plugins/package-curation-providers/sw360/src/main/kotlin/Sw360PackageCurationProvider.kt b/plugins/package-curation-providers/sw360/src/main/kotlin/Sw360PackageCurationProvider.kt index 2e0de9bfa0de1..558fbd53d85a4 100644 --- a/plugins/package-curation-providers/sw360/src/main/kotlin/Sw360PackageCurationProvider.kt +++ b/plugins/package-curation-providers/sw360/src/main/kotlin/Sw360PackageCurationProvider.kt @@ -57,11 +57,11 @@ class Sw360PackageCurationProviderFactory : PackageCurationProviderFactory