From 6ef6b16ac603b1a2a4e35afab891e53b42bad481 Mon Sep 17 00:00:00 2001 From: VirajSalaka Date: Tue, 8 Oct 2024 07:35:23 +0530 Subject: [PATCH] workflow --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 433675f820..977d8d23fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,10 +50,10 @@ jobs: message = rule['message'] pathsList = [] for path in rule['paths']['list']: - if len(path) <= 45: + if len(path[2:]) <= 48: pathsList.append(path) else: - pathsList.append(f\"...{path[-45:]}\") + pathsList.append(f\"{path[:1]}...{path[-48:]}\") paths = '\n'.join(pathsList) table_data.append([severity, ruleset_name, message, paths])