Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VirajSalaka committed Oct 8, 2024
1 parent bca14fd commit 6ef6b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 6ef6b16

Please sign in to comment.