Implement verified OCI prepared-lower lifecycle
This commit is contained in:
parent
54f3a08b91
commit
5458460717
1 changed files with 4973 additions and 273 deletions
|
|
@ -350,6 +350,7 @@ def audit_dependencies(metadata: dict) -> None:
|
|||
|
||||
def license_permitted(expression: str, allowed: set[str]) -> bool:
|
||||
expression = re.sub(r"\s+WITH\s+[A-Za-z0-9.-]+", "", expression)
|
||||
expression = re.sub(r"\s*/\s*", " OR ", expression)
|
||||
return bool(expression) and any(
|
||||
all(
|
||||
term.strip(" ()") in allowed
|
||||
|
|
|
|||
Loading…
Reference in a new issue