diff --git a/concourse/model/traits/image_scan.py b/concourse/model/traits/image_scan.py index 668fea565..4f3fbd739 100644 --- a/concourse/model/traits/image_scan.py +++ b/concourse/model/traits/image_scan.py @@ -5,7 +5,6 @@ import dataclasses import enum -import re import typing import dacite @@ -74,26 +73,6 @@ class GithubIssueTemplateCfg: type: str -@dataclasses.dataclass -class LicenseCfg: - ''' - configures license policies for discovered licences - - licenses are configured as lists of regular expressions (matching is done case-insensitive) - ''' - prohibited_licenses: typing.Optional[list[str]] = None - - def is_allowed(self, license: str): - if not self.prohibited_licenses: - return True - - for prohibited in self.prohibited_licenses: - if re.fullmatch(prohibited, license, re.IGNORECASE): - return False - else: - return True - - @dataclasses.dataclass(frozen=True) class IssuePolicies: max_processing_time_days: gcm.MaxProcessingTimesDays = gcm.MaxProcessingTimesDays()