diff --git a/evaluator/src/main/resources/rules/osadl.rules.kts b/evaluator/src/main/resources/rules/osadl.rules.kts index 98c2d21d4f3ad..d3a530ebc0bc6 100644 --- a/evaluator/src/main/resources/rules/osadl.rules.kts +++ b/evaluator/src/main/resources/rules/osadl.rules.kts @@ -37,7 +37,9 @@ val ruleSet = ruleSet(ortResult, licenseInfoResolver) { -isExcluded() } - val projectLicenseInfo = licenseInfoResolver.resolveLicenseInfo(project.id).filter(licenseView).filterExcluded() + val projectLicenseInfo = licenseInfoResolver.resolveLicenseInfo(project.id).filterExcluded() + .applyChoices(ortResult.getRepositoryLicenseChoices(), licenseView) + val outboundLicenses = projectLicenseInfo.licenses.map { it.license } // Define a rule that is executed for each license of the dependency.