Skip to content

Commit 75891a2

Browse files
committed
chore(scanoss): Make more clear that vulnerabilities are a paid feature
Rename the function to clarify this is not an OSSKB API key and also add a comment. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.io>
1 parent 4263318 commit 75891a2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

plugins/advisors/scanoss/src/funTest/kotlin/ScanOssFunTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import org.ossreviewtoolkit.utils.test.identifierToPackage
4343

4444
@EnabledIf(ScanOssCheck::class)
4545
class ScanOssFunTest : WordSpec({
46-
val apiKey = checkNotNull(ScanOssCheck.getApiKey())
46+
val apiKey = checkNotNull(ScanOssCheck.getScanOssApiKey())
4747
val scanoss = ScanOssFactory.create(apiKey = Secret(apiKey))
4848

4949
"retrievePackageFindings()" should {
@@ -135,7 +135,8 @@ class ScanOssFunTest : WordSpec({
135135
})
136136

137137
internal object ScanOssCheck : Condition {
138-
fun getApiKey(): String? = System.getenv("SCANOSS_API_KEY")
138+
fun getScanOssApiKey(): String? = System.getenv("SCANOSS_API_KEY")
139139

140-
override fun evaluate(kclass: KClass<out Spec>): Boolean = getApiKey() != null
140+
// Vulnerabilities (and copyrights) are commercial features.
141+
override fun evaluate(kclass: KClass<out Spec>): Boolean = getScanOssApiKey() != null
141142
}

0 commit comments

Comments
 (0)