|
@@ -316,6 +316,20 @@ def common_file_exclusion_reason(relative: str) -> str | None:
|
|
|
return "generated_binary_artifact"
|
|
return "generated_binary_artifact"
|
|
|
if suffix == ".exe":
|
|
if suffix == ".exe":
|
|
|
return "vendor_executable"
|
|
return "vendor_executable"
|
|
|
|
|
+ # Vendor tool installers / release archives must never enter analysis packages.
|
|
|
|
|
+ if name.startswith(("bw_release_", "td_release_", "oss-cad-suite")) and suffix in {
|
|
|
|
|
+ ".zip",
|
|
|
|
|
+ ".tgz",
|
|
|
|
|
+ ".tar",
|
|
|
|
|
+ ".gz",
|
|
|
|
|
+ ".7z",
|
|
|
|
|
+ ".rar",
|
|
|
|
|
+ }:
|
|
|
|
|
+ return "vendor_toolchain_archive"
|
|
|
|
|
+ if "license" in name and suffix in {".zip", ".tgz", ".7z", ".rar"}:
|
|
|
|
|
+ return "license_archive"
|
|
|
|
|
+ if name.endswith((".lic",)) or name in {"anlogic.lic"}:
|
|
|
|
|
+ return "credential_or_license_file"
|
|
|
return None
|
|
return None
|
|
|
|
|
|
|
|
|
|
|