From 294e01003d299b29cc2a42fe75945299f2f130b9 Mon Sep 17 00:00:00 2001 From: Alexander Railean Date: Fri, 6 Oct 2023 12:04:57 +0200 Subject: [PATCH] Fix Python logic in license checker --- scripts/license-check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/license-check.py b/scripts/license-check.py index f094aacd..d3025810 100644 --- a/scripts/license-check.py +++ b/scripts/license-check.py @@ -123,7 +123,7 @@ def load_allowed_licenses(path): logging.info('Producing license report: \n%s', summary) if args.enforce: - allowed = load_allowed_licenses(args.allowed) + allowed = load_allowed_licenses(args.enforce) valid = check_license_compliance(parsed_sbom, allowed) if valid: logging.info('SUCCESS: No license issues found')