We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c644e8e commit 31710c8Copy full SHA for 31710c8
src/fosslight_binary/_binary.py
@@ -10,6 +10,7 @@
10
EXCLUDE_TRUE_VALUE = "Exclude"
11
TLSH_CHECKSUM_NULL = "0"
12
MAX_EXCEL_URL_LENGTH = 255
13
+EXCEEDED_VUL_URL_LENGTH_COMMENT = f"Exceeded the maximum vulnerability URL length of {MAX_EXCEL_URL_LENGTH} characters."
14
15
logger = logging.getLogger(constant.LOGGER_NAME)
16
@@ -54,7 +55,8 @@ def get_vulnerability_items(self, oss):
54
55
nvd_url = ", ".join(nvd_url).strip()
56
57
if nvd_url and len(nvd_url) > MAX_EXCEL_URL_LENGTH:
- oss.comment = f"Exceeded the maximum vulnerability URL length of {MAX_EXCEL_URL_LENGTH} characters."
58
+ if EXCEEDED_VUL_URL_LENGTH_COMMENT not in oss.comment:
59
+ oss.comment = EXCEEDED_VUL_URL_LENGTH_COMMENT
60
return nvd_url
61
62
def get_print_binary_only(self):
0 commit comments